diff --git a/src/Illuminate/Console/Scheduling/Event.php b/src/Illuminate/Console/Scheduling/Event.php index 97ca86ab6632..9cac80f249f9 100644 --- a/src/Illuminate/Console/Scheduling/Event.php +++ b/src/Illuminate/Console/Scheduling/Event.php @@ -163,10 +163,10 @@ public function run(Container $container) $this->cache->put($this->mutexName(), true, 1440); } - if (! $this->runInBackground) { - $this->runCommandInForeground($container); - } else { + if ($this->runInBackground) { $this->runCommandInBackground(); + } else { + $this->runCommandInForeground($container); } }