@@ -70,7 +70,7 @@ |
||
| 70 | 70 | |
| 71 | 71 | if (count($content)) { |
| 72 | 72 | foreach ($content as $pid) { |
| 73 | - $pid = (int)trim($pid); |
|
| 73 | + $pid = (int) trim($pid); |
|
| 74 | 74 | |
| 75 | 75 | if ($pid > 0) { |
| 76 | 76 | exec('kill '.$pid); |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | { |
| 60 | 60 | exec($this->composeForRunInBackground(), $out, $pid); |
| 61 | 61 | |
| 62 | - return count($out) ? (int)$out[0] : null; |
|
| 62 | + return count($out) ? (int) $out[0] : null; |
|
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | /** |
@@ -81,12 +81,12 @@ discard block |
||
| 81 | 81 | { |
| 82 | 82 | $parts = []; |
| 83 | 83 | if (!empty($this->before)) { |
| 84 | - $parts[] = (string)$this->before; |
|
| 84 | + $parts[] = (string) $this->before; |
|
| 85 | 85 | } |
| 86 | 86 | $parts[] = 'cd '.base_path(); |
| 87 | 87 | $parts[] = "{$this->phpBinary} {$this->getArtisan()} {$this->command}"; |
| 88 | 88 | if (!empty($this->after)) { |
| 89 | - $parts[] = (string)$this->after; |
|
| 89 | + $parts[] = (string) $this->after; |
|
| 90 | 90 | } |
| 91 | 91 | |
| 92 | 92 | return implode(' && ', $parts); |
@@ -203,7 +203,7 @@ |
||
| 203 | 203 | $callback = explode('&', $callback); |
| 204 | 204 | $self = $this; |
| 205 | 205 | |
| 206 | - return function () use ($callback, $namespace, $self) { |
|
| 206 | + return function() use ($callback, $namespace, $self) { |
|
| 207 | 207 | if (count($callback) === 1) { |
| 208 | 208 | return call_user_func_array([$this, $callback[0]], func_get_args()); |
| 209 | 209 | } |