@@ -68,7 +68,7 @@ |
||
| 68 | 68 | ); |
| 69 | 69 | } else { |
| 70 | 70 | throw new RuntimeException( |
| 71 | - 'PHP need to be compiled with ZTS extension or compiled with the --enable-pcntl. ' . |
|
| 71 | + 'PHP need to be compiled with ZTS extension or compiled with the --enable-pcntl. '. |
|
| 72 | 72 | 'Windows is not supported.' |
| 73 | 73 | ); |
| 74 | 74 | } |
@@ -194,8 +194,8 @@ |
||
| 194 | 194 | private function signalHandler($signal) |
| 195 | 195 | { |
| 196 | 196 | switch ($signal) { |
| 197 | - case SIGTERM: |
|
| 198 | - exit(0); |
|
| 197 | + case SIGTERM: |
|
| 198 | + exit(0); |
|
| 199 | 199 | } |
| 200 | 200 | } |
| 201 | 201 | |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | */ |
| 67 | 67 | public function execute() |
| 68 | 68 | { |
| 69 | - $this->threadKey = 'thread_' . rand(1000, 9999) . rand(1000, 9999) . rand(1000, 9999) . rand(1000, 9999); |
|
| 69 | + $this->threadKey = 'thread_'.rand(1000, 9999).rand(1000, 9999).rand(1000, 9999).rand(1000, 9999); |
|
| 70 | 70 | |
| 71 | 71 | if (($this->pid = pcntl_fork()) == -1) { |
| 72 | 72 | throw new RuntimeException('Couldn\'t fork the process'); |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | |
| 83 | 83 | $callable = $this->callable; |
| 84 | 84 | if (!is_string($callable)) { |
| 85 | - $callable = (array) $this->callable; |
|
| 85 | + $callable = (array)$this->callable; |
|
| 86 | 86 | } |
| 87 | 87 | |
| 88 | 88 | try { |
@@ -37,9 +37,9 @@ discard block |
||
| 37 | 37 | return $this->loader; |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | - $path = __DIR__ . '/../../vendor/autoload.php'; |
|
| 40 | + $path = __DIR__.'/../../vendor/autoload.php'; |
|
| 41 | 41 | if (!file_exists($path)) { |
| 42 | - $path = __DIR__ . '/../../../../autoload.php'; |
|
| 42 | + $path = __DIR__.'/../../../../autoload.php'; |
|
| 43 | 43 | if (!file_exists($path)) { |
| 44 | 44 | throw new \RuntimeException("Autoload path '$path' not found"); |
| 45 | 45 | } |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | |
| 59 | 59 | $callable = $this->callable; |
| 60 | 60 | if (!is_string($callable)) { |
| 61 | - $callable = (array) $this->callable; |
|
| 61 | + $callable = (array)$this->callable; |
|
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | try { |