@@ -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 @@ |
||
| 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'); |