@@ -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) |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | } |
| 124 | 124 | |
| 125 | 125 | if ($this->cwd) { |
| 126 | - $command .= 'cd ' . $this->cwd . '; '; |
|
| 126 | + $command .= 'cd ' . $this->cwd . '; '; |
|
| 127 | 127 | } |
| 128 | 128 | |
| 129 | 129 | if ($this->user) { |
@@ -258,7 +258,7 @@ discard block |
||
| 258 | 258 | */ |
| 259 | 259 | private function inTimeInterval($startTime, $endTime) |
| 260 | 260 | { |
| 261 | - return function () use ($startTime, $endTime) { |
|
| 261 | + return function() use ($startTime, $endTime) { |
|
| 262 | 262 | $now = Carbon::now()->getTimestamp(); |
| 263 | 263 | return $now >= strtotime($startTime) && $now <= strtotime($endTime); |
| 264 | 264 | }; |