Skip to content

Commit a1e6b6d

Browse files
author
m-tanabe
committed
Fix variable names
1 parent 93f95fe commit a1e6b6d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

caliper/app/Commands/Generate.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ public function handle()
3737
private function translateEvent()
3838
{
3939
$eventCount = env('EVENT_COUNT', 10000);
40-
$excludedOriginsStr = env('EXCLUDED_ORIGINS', '');
41-
$excludedOrigins = $excludedOriginsStr === '' ? [] : explode(',', $excludedOriginsStr);
40+
$excludedOrigins = env('EXCLUDED_ORIGINS', '');
41+
$excludedOriginsArray = $excludedOrigins === '' ? [] : explode(',', $excludedOrigins);
4242

4343
$executionLog = new ExecutionLog();
4444
$failedLog = new FailedLog();
@@ -70,8 +70,8 @@ private function translateEvent()
7070
->reject(function ($event) {
7171
return $event->userid === 0;
7272
})
73-
->filter(function ($event) use ($excludedOrigins) {
74-
return !in_array($event->origin, $excludedOrigins);
73+
->filter(function ($event) use ($excludedOriginsArray) {
74+
return !in_array($event->origin, $excludedOriginsArray);
7575
})
7676
->filter(function ($event) {
7777
return is_supported($event->eventname);

0 commit comments

Comments
 (0)