@@ -280,7 +280,7 @@ |
||
280 | 280 | /** |
281 | 281 | * Set the days of the week the command should run on. |
282 | 282 | * |
283 | - * @param array|mixed $days |
|
283 | + * @param integer $days |
|
284 | 284 | * @return $this |
285 | 285 | */ |
286 | 286 | public function days($days) |
@@ -93,7 +93,7 @@ |
||
93 | 93 | */ |
94 | 94 | private function inTimeInterval($startTime, $endTime) |
95 | 95 | { |
96 | - return function () use ($startTime, $endTime) { |
|
96 | + return function() use ($startTime, $endTime) { |
|
97 | 97 | $now = Carbon::now()->getTimestamp(); |
98 | 98 | return $now >= strtotime($startTime) && $now <= strtotime($endTime); |
99 | 99 | }; |
@@ -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 | } |
@@ -96,7 +96,7 @@ |
||
96 | 96 | $parts = []; |
97 | 97 | |
98 | 98 | if ($this->cwd) { |
99 | - $parts[] = 'cd ' . $this->cwd . ';'; |
|
99 | + $parts[] = 'cd ' . $this->cwd . ';'; |
|
100 | 100 | } |
101 | 101 | |
102 | 102 | if ($this->user) { |
@@ -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 | } |