@@ -183,7 +183,7 @@ |
||
| 183 | 183 | * |
| 184 | 184 | * @throws \Exception |
| 185 | 185 | * |
| 186 | - * @return bool|string |
|
| 186 | + * @return string|false |
|
| 187 | 187 | */ |
| 188 | 188 | protected function getPid() |
| 189 | 189 | { |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | public function handleAction($argv) |
| 56 | 56 | { |
| 57 | 57 | if (count($argv) < 2) { |
| 58 | - return ; |
|
| 58 | + return; |
|
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | if (in_array($argv[1], ['stop', 'reload', 'restart'])) { |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | |
| 68 | 68 | public function handleArguments() |
| 69 | 69 | { |
| 70 | - $serverOptions = array_map(function ($option) { |
|
| 70 | + $serverOptions = array_map(function($option) { |
|
| 71 | 71 | return "$option:"; |
| 72 | 72 | }, Server::$validServerOptions); |
| 73 | 73 | |
@@ -213,17 +213,17 @@ discard block |
||
| 213 | 213 | { |
| 214 | 214 | error_reporting(-1); |
| 215 | 215 | |
| 216 | - set_error_handler(function ($level, $message, $file = '', $line = 0) { |
|
| 216 | + set_error_handler(function($level, $message, $file = '', $line = 0) { |
|
| 217 | 217 | if (error_reporting() & $level) { |
| 218 | 218 | throw new ErrorException($message, 0, $level, $file, $line); |
| 219 | 219 | } |
| 220 | 220 | }); |
| 221 | 221 | |
| 222 | - set_exception_handler(function ($e) { |
|
| 222 | + set_exception_handler(function($e) { |
|
| 223 | 223 | $this->handleUncaughtException($e); |
| 224 | 224 | }); |
| 225 | 225 | |
| 226 | - register_shutdown_function(function () { |
|
| 226 | + register_shutdown_function(function() { |
|
| 227 | 227 | $this->handleShutdown(); |
| 228 | 228 | }); |
| 229 | 229 | } |
@@ -250,7 +250,7 @@ discard block |
||
| 250 | 250 | */ |
| 251 | 251 | protected function handleShutdown() |
| 252 | 252 | { |
| 253 | - if (! is_null($error = error_get_last()) && $this->isFatalError($error['type'])) { |
|
| 253 | + if (!is_null($error = error_get_last()) && $this->isFatalError($error['type'])) { |
|
| 254 | 254 | $this->handleUncaughtException(new FatalErrorException( |
| 255 | 255 | $error['message'], |
| 256 | 256 | $error['type'], |