@@ -56,9 +56,9 @@ |
||
| 56 | 56 | protected function listener(): void |
| 57 | 57 | { |
| 58 | 58 | pcntl_async_signals(true); |
| 59 | - pcntl_signal(SIGCHLD, function ($signo, $status) { |
|
| 59 | + pcntl_signal(SIGCHLD, function($signo, $status) { |
|
| 60 | 60 | while (true) { |
| 61 | - $pid = pcntl_waitpid(-1, $processState, WNOHANG | WUNTRACED); |
|
| 61 | + $pid = pcntl_waitpid(-1, $processState, WNOHANG|WUNTRACED); |
|
| 62 | 62 | if ($pid <= 0) { |
| 63 | 63 | break; |
| 64 | 64 | } |
@@ -41,11 +41,11 @@ |
||
| 41 | 41 | protected function find(string $file): ?string |
| 42 | 42 | { |
| 43 | 43 | $paths = array_filter([ |
| 44 | - __DIR__ . '/../../../../'.$file, |
|
| 45 | - __DIR__ . '/../../../'.$file, |
|
| 46 | - __DIR__ . '/../../'.$file, |
|
| 47 | - __DIR__ . '/../'.$file, |
|
| 48 | - ], static function (string $path) { |
|
| 44 | + __DIR__ . '/../../../../' . $file, |
|
| 45 | + __DIR__ . '/../../../' . $file, |
|
| 46 | + __DIR__ . '/../../' . $file, |
|
| 47 | + __DIR__ . '/../' . $file, |
|
| 48 | + ], static function(string $path) { |
|
| 49 | 49 | return file_exists($path); |
| 50 | 50 | }); |
| 51 | 51 | return reset($paths); |