@@ -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 | } |
@@ -100,6 +100,9 @@ discard block |
||
| 100 | 100 | */ |
| 101 | 101 | public $description; |
| 102 | 102 | |
| 103 | + /** |
|
| 104 | + * @param string $command |
|
| 105 | + */ |
|
| 103 | 106 | public function __construct(/* string */ $command) |
| 104 | 107 | { |
| 105 | 108 | Assert::stringNotEmpty($command); |
@@ -530,7 +533,7 @@ discard block |
||
| 530 | 533 | /** |
| 531 | 534 | * Set the days of the week the command should run on. |
| 532 | 535 | * |
| 533 | - * @param array|mixed $days |
|
| 536 | + * @param integer $days |
|
| 534 | 537 | * @return $this |
| 535 | 538 | */ |
| 536 | 539 | public function days($days) |
@@ -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 | }; |