@@ -185,7 +185,7 @@ discard block |
||
| 185 | 185 | */ |
| 186 | 186 | public function thenPing($url) |
| 187 | 187 | { |
| 188 | - return $this->then(function () use ($url) { |
|
| 188 | + return $this->then(function() use ($url) { |
|
| 189 | 189 | (new HttpClient())->get($url); |
| 190 | 190 | }); |
| 191 | 191 | } |
@@ -234,7 +234,7 @@ discard block |
||
| 234 | 234 | } |
| 235 | 235 | $address = is_array($address) ? $address : func_get_args(); |
| 236 | 236 | |
| 237 | - return $this->then(function (Application $app) use ($address) { |
|
| 237 | + return $this->then(function(Application $app) use ($address) { |
|
| 238 | 238 | $this->sendEmail($app->mailer, $address); |
| 239 | 239 | }); |
| 240 | 240 | } |
@@ -391,8 +391,8 @@ discard block |
||
| 391 | 391 | { |
| 392 | 392 | $segments = explode(':', $time); |
| 393 | 393 | |
| 394 | - return $this->spliceIntoPosition(2, (int)$segments[0]) |
|
| 395 | - ->spliceIntoPosition(1, count($segments) == 2 ? (int)$segments[1] : '0'); |
|
| 394 | + return $this->spliceIntoPosition(2, (int) $segments[0]) |
|
| 395 | + ->spliceIntoPosition(1, count($segments) == 2 ? (int) $segments[1] : '0'); |
|
| 396 | 396 | } |
| 397 | 397 | |
| 398 | 398 | /** |
@@ -563,7 +563,7 @@ discard block |
||
| 563 | 563 | */ |
| 564 | 564 | public function everyNMinutes($minutes) |
| 565 | 565 | { |
| 566 | - return $this->cron('*/' . $minutes . ' * * * * *'); |
|
| 566 | + return $this->cron('*/'.$minutes.' * * * * *'); |
|
| 567 | 567 | } |
| 568 | 568 | |
| 569 | 569 | /** |
@@ -619,9 +619,9 @@ discard block |
||
| 619 | 619 | */ |
| 620 | 620 | public function buildCommand() |
| 621 | 621 | { |
| 622 | - $command = $this->command . ' >> ' . $this->_output . ' 2>&1 &'; |
|
| 622 | + $command = $this->command.' >> '.$this->_output.' 2>&1 &'; |
|
| 623 | 623 | |
| 624 | - return $this->_user ? 'sudo -u ' . $this->_user . ' ' . $command : $command; |
|
| 624 | + return $this->_user ? 'sudo -u '.$this->_user.' '.$command : $command; |
|
| 625 | 625 | } |
| 626 | 626 | |
| 627 | 627 | /** |
@@ -648,7 +648,7 @@ discard block |
||
| 648 | 648 | protected function getEmailSubject() |
| 649 | 649 | { |
| 650 | 650 | if ($this->_description) { |
| 651 | - return 'Scheduled Job Output (' . $this->_description . ')'; |
|
| 651 | + return 'Scheduled Job Output ('.$this->_description.')'; |
|
| 652 | 652 | } |
| 653 | 653 | |
| 654 | 654 | return 'Scheduled Job Output'; |