@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | |
| 98 | 98 | $routeConfigurators = []; |
| 99 | 99 | if (empty($method) === false && empty($path) === false) { |
| 100 | - list(, , , , , $routeConfigurators) = $this->initRouter($coreSettings)->match($method, $path); |
|
| 100 | + list(,,,,, $routeConfigurators) = $this->initRouter($coreSettings)->match($method, $path); |
|
| 101 | 101 | } |
| 102 | 102 | |
| 103 | 103 | // configure container |
@@ -210,7 +210,7 @@ discard block |
||
| 210 | 210 | */ |
| 211 | 211 | protected function createThrowableHandler(SapiInterface $sapi, PsrContainerInterface $container): Closure |
| 212 | 212 | { |
| 213 | - return function (Throwable $throwable) use ($sapi, $container) { |
|
| 213 | + return function(Throwable $throwable) use ($sapi, $container) { |
|
| 214 | 214 | $handler = $this->createExceptionHandler($container); |
| 215 | 215 | $handler->handleThrowable($throwable, $sapi, $container); |
| 216 | 216 | }; |
@@ -224,7 +224,7 @@ discard block |
||
| 224 | 224 | */ |
| 225 | 225 | protected function createErrorHandler(SapiInterface $sapi, PsrContainerInterface $container): Closure |
| 226 | 226 | { |
| 227 | - return function ($severity, $message, $fileName, $lineNumber) use ($sapi, $container) { |
|
| 227 | + return function($severity, $message, $fileName, $lineNumber) use ($sapi, $container) { |
|
| 228 | 228 | $errorException = new ErrorException($message, 0, $severity, $fileName, $lineNumber); |
| 229 | 229 | $handler = $this->createThrowableHandler($sapi, $container); |
| 230 | 230 | $handler($errorException); |
@@ -239,9 +239,9 @@ discard block |
||
| 239 | 239 | */ |
| 240 | 240 | protected function createFatalErrorHandler(PsrContainerInterface $container): Closure |
| 241 | 241 | { |
| 242 | - return function () use ($container) { |
|
| 242 | + return function() use ($container) { |
|
| 243 | 243 | $error = $this->getLastError(); |
| 244 | - if ($error !== null && ((int)$error['type'] & (E_ERROR | E_COMPILE_ERROR))) { |
|
| 244 | + if ($error !== null && ((int) $error['type'] & (E_ERROR | E_COMPILE_ERROR))) { |
|
| 245 | 245 | $handler = $this->createExceptionHandler($container); |
| 246 | 246 | $handler->handleFatal($error, $container); |
| 247 | 247 | } |
@@ -253,7 +253,7 @@ discard block |
||
| 253 | 253 | * |
| 254 | 254 | * @return array|null |
| 255 | 255 | */ |
| 256 | - protected function getLastError(): ?array |
|
| 256 | + protected function getLastError(): ? array |
|
| 257 | 257 | { |
| 258 | 258 | return error_get_last(); |
| 259 | 259 | } |