@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | { |
66 | 66 | $min = $hour = 0; |
67 | 67 | |
68 | - if (! empty($time)) { |
|
68 | + if (!empty($time)) { |
|
69 | 69 | [$min, $hour] = $this->parseTime($time); |
70 | 70 | } |
71 | 71 | |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | */ |
130 | 130 | public function hours($hours = []): self |
131 | 131 | { |
132 | - if (! is_array($hours)) { |
|
132 | + if (!is_array($hours)) { |
|
133 | 133 | $hours = [$hours]; |
134 | 134 | } |
135 | 135 | |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | */ |
192 | 192 | public function minutes($minutes = []): self |
193 | 193 | { |
194 | - if (! is_array($minutes)) { |
|
194 | + if (!is_array($minutes)) { |
|
195 | 195 | $minutes = [$minutes]; |
196 | 196 | } |
197 | 197 | |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | */ |
208 | 208 | public function days($days): self |
209 | 209 | { |
210 | - if (! is_array($days)) { |
|
210 | + if (!is_array($days)) { |
|
211 | 211 | $days = [$days]; |
212 | 212 | } |
213 | 213 | |
@@ -279,7 +279,7 @@ discard block |
||
279 | 279 | { |
280 | 280 | $min = $hour = 0; |
281 | 281 | |
282 | - if (! empty($time)) { |
|
282 | + if (!empty($time)) { |
|
283 | 283 | [$min, $hour] = $this->parseTime($time); |
284 | 284 | } |
285 | 285 | |
@@ -297,7 +297,7 @@ discard block |
||
297 | 297 | */ |
298 | 298 | public function daysOfMonth($days): self |
299 | 299 | { |
300 | - if (! is_array($days)) { |
|
300 | + if (!is_array($days)) { |
|
301 | 301 | $days = [$days]; |
302 | 302 | } |
303 | 303 | |
@@ -351,7 +351,7 @@ discard block |
||
351 | 351 | { |
352 | 352 | $min = $hour = 0; |
353 | 353 | |
354 | - if (! empty($time)) { |
|
354 | + if (!empty($time)) { |
|
355 | 355 | [$min, $hour] = $this->parseTime($time); |
356 | 356 | } |
357 | 357 | |
@@ -371,7 +371,7 @@ discard block |
||
371 | 371 | { |
372 | 372 | $min = $hour = 0; |
373 | 373 | |
374 | - if (! empty($time)) { |
|
374 | + if (!empty($time)) { |
|
375 | 375 | [$min, $hour] = $this->parseTime($time); |
376 | 376 | } |
377 | 377 | |
@@ -390,7 +390,7 @@ discard block |
||
390 | 390 | { |
391 | 391 | $min = $hour = 0; |
392 | 392 | |
393 | - if (! empty($time)) { |
|
393 | + if (!empty($time)) { |
|
394 | 394 | [$min, $hour] = $this->parseTime($time); |
395 | 395 | } |
396 | 396 | |
@@ -408,7 +408,7 @@ discard block |
||
408 | 408 | { |
409 | 409 | $min = $hour = 0; |
410 | 410 | |
411 | - if (! empty($time)) { |
|
411 | + if (!empty($time)) { |
|
412 | 412 | [$min, $hour] = $this->parseTime($time); |
413 | 413 | } |
414 | 414 | |
@@ -426,7 +426,7 @@ discard block |
||
426 | 426 | { |
427 | 427 | $min = $hour = '*'; |
428 | 428 | |
429 | - if (! empty($time)) { |
|
429 | + if (!empty($time)) { |
|
430 | 430 | [$min, $hour] = $this->parseTime($time); |
431 | 431 | } |
432 | 432 |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | |
90 | 90 | $addresses = Arr::wrap($addresses); |
91 | 91 | |
92 | - return $this->then(function (MailerInterface $mailer) use ($addresses, $onlyIfOutputExists) { |
|
92 | + return $this->then(function(MailerInterface $mailer) use ($addresses, $onlyIfOutputExists) { |
|
93 | 93 | $this->emailOutput($mailer, $addresses, $onlyIfOutputExists); |
94 | 94 | }); |
95 | 95 | } |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | |
118 | 118 | $addresses = Arr::wrap($addresses); |
119 | 119 | |
120 | - return $this->onFailure(function (MailerInterface $mailer) use ($addresses) { |
|
120 | + return $this->onFailure(function(MailerInterface $mailer) use ($addresses) { |
|
121 | 121 | $this->emailOutput($mailer, $addresses, false); |
122 | 122 | }); |
123 | 123 | } |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | */ |
156 | 156 | public function onSuccess(Closure $callback): self |
157 | 157 | { |
158 | - return $this->then(function (ContainerInterface $container) use ($callback) { |
|
158 | + return $this->then(function(ContainerInterface $container) use ($callback) { |
|
159 | 159 | if ($this->exitCode === EXIT_SUCCESS) { |
160 | 160 | $container->call($callback); |
161 | 161 | } |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | */ |
168 | 168 | public function onFailure(Closure $callback): self |
169 | 169 | { |
170 | - return $this->then(function (ContainerInterface $container) use ($callback) { |
|
170 | + return $this->then(function(ContainerInterface $container) use ($callback) { |
|
171 | 171 | if ($this->exitCode !== EXIT_SUCCESS) { |
172 | 172 | $container->call($callback, array_filter([$this->exception])); |
173 | 173 | } |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | while (true) { |
66 | 66 | usleep(100 * 1000); |
67 | 67 | |
68 | - if ((int) (Date::now()->getSecond()) === 0 && ! Date::now()->startOfMinute()->equalTo($lastExecutionStartedAt)) { |
|
68 | + if ((int) (Date::now()->getSecond()) === 0 && !Date::now()->startOfMinute()->equalTo($lastExecutionStartedAt)) { |
|
69 | 69 | $executions[] = $execution = Process::fromShellCommandline($command); |
70 | 70 | |
71 | 71 | $execution->start(); |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | |
79 | 79 | $this->write(ltrim($output, "\n"))->eol(); |
80 | 80 | |
81 | - if (! $execution->isRunning()) { |
|
81 | + if (!$execution->isRunning()) { |
|
82 | 82 | unset($executions[$key]); |
83 | 83 | } |
84 | 84 | } |