File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments