@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | */ |
60 | 60 | public function run($event) |
61 | 61 | { |
62 | - if(is_callable($event)) { |
|
62 | + if (is_callable($event)) { |
|
63 | 63 | $event = new Callback($event); |
64 | 64 | } else { |
65 | 65 | $event = new Process($event); |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | */ |
85 | 85 | public function dueEvents() |
86 | 86 | { |
87 | - return array_filter($this->events, function (Event $event) { |
|
87 | + return array_filter($this->events, function(Event $event) { |
|
88 | 88 | return $event->isDue(); |
89 | 89 | }); |
90 | 90 | } |
@@ -56,11 +56,11 @@ |
||
56 | 56 | |
57 | 57 | foreach ($events as $event) { |
58 | 58 | if ($output->getVerbosity() >= $this->minimumVerbosity) { |
59 | - $output->writeln('Running event <info>"' . (string)$event . '"</info>'); |
|
59 | + $output->writeln('Running event <info>"' . (string) $event . '"</info>'); |
|
60 | 60 | } |
61 | 61 | |
62 | 62 | $result = $event->run(); |
63 | - if ($event instanceof Process) { |
|
63 | + if ($event instanceof Process) { |
|
64 | 64 | $this->handleProcessOutput($result, $output); |
65 | 65 | } |
66 | 66 | } |
@@ -60,7 +60,7 @@ |
||
60 | 60 | } |
61 | 61 | |
62 | 62 | $result = $event->run(); |
63 | - if ($event instanceof Process) { |
|
63 | + if ($event instanceof Process) { |
|
64 | 64 | $this->handleProcessOutput($result, $output); |
65 | 65 | } |
66 | 66 | } |