@@ -36,7 +36,7 @@ |
||
36 | 36 | */ |
37 | 37 | public function dueEvents() |
38 | 38 | { |
39 | - return array_filter($this->events, function (Event $event) { |
|
39 | + return array_filter($this->events, function(Event $event) { |
|
40 | 40 | return $event->isDue(); |
41 | 41 | }); |
42 | 42 | } |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | $parts = []; |
142 | 142 | |
143 | 143 | if ($this->cwd) { |
144 | - $parts[] = 'cd ' . $this->cwd . ';'; |
|
144 | + $parts[] = 'cd ' . $this->cwd . ';'; |
|
145 | 145 | } |
146 | 146 | |
147 | 147 | if ($this->user) { |
@@ -279,7 +279,7 @@ discard block |
||
279 | 279 | */ |
280 | 280 | private function inTimeInterval($startTime, $endTime) |
281 | 281 | { |
282 | - return function () use ($startTime, $endTime) { |
|
282 | + return function() use ($startTime, $endTime) { |
|
283 | 283 | $now = Carbon::now()->getTimestamp(); |
284 | 284 | return $now >= strtotime($startTime) && $now <= strtotime($endTime); |
285 | 285 | }; |
@@ -101,6 +101,9 @@ discard block |
||
101 | 101 | */ |
102 | 102 | public $description; |
103 | 103 | |
104 | + /** |
|
105 | + * @param string $command |
|
106 | + */ |
|
104 | 107 | public function __construct(/* string */ $command) |
105 | 108 | { |
106 | 109 | Assert::stringNotEmpty($command); |
@@ -324,7 +327,7 @@ discard block |
||
324 | 327 | /** |
325 | 328 | * Set which user the command should run as. |
326 | 329 | * |
327 | - * @param string? $user |
|
330 | + * @param string $user |
|
328 | 331 | * @return $this |
329 | 332 | */ |
330 | 333 | public function asUser(/* string? */ $user) |
@@ -514,7 +517,7 @@ discard block |
||
514 | 517 | /** |
515 | 518 | * Set the hour when the job should run (0-23, *, *\/2, etc) |
516 | 519 | * |
517 | - * @param string|int $hour |
|
520 | + * @param integer $hour |
|
518 | 521 | * @return Event |
519 | 522 | */ |
520 | 523 | public function hour($hour) |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | { |
134 | 134 | $event = new Event('php -i'); |
135 | 135 | |
136 | - $event->days([1, 2 ,3 ]); |
|
136 | + $event->days([1, 2, 3]); |
|
137 | 137 | $this->assertSame('* * * * 1,2,3 *', (string) $event->getCronExpression()); |
138 | 138 | |
139 | 139 | $event->days(4, 5, 6); |
@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | |
206 | 206 | $this->assertTrue($event->isDue()); |
207 | 207 | |
208 | - $event->skip(function () { |
|
208 | + $event->skip(function() { |
|
209 | 209 | return true; |
210 | 210 | }); |
211 | 211 | |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | |
217 | 217 | $this->assertTrue($event->isDue()); |
218 | 218 | |
219 | - $event->when(function () { |
|
219 | + $event->when(function() { |
|
220 | 220 | return false; |
221 | 221 | }); |
222 | 222 |