@@ -200,7 +200,7 @@ discard block |
||
| 200 | 200 | protected function handleThrowable( |
| 201 | 201 | Throwable $throwable, |
| 202 | 202 | ?PsrContainerInterface $container |
| 203 | - ): ThrowableResponseInterface { |
|
| 203 | + ) : ThrowableResponseInterface { |
|
| 204 | 204 | if ($container !== null && $container->has(ThrowableHandlerInterface::class) === true) { |
| 205 | 205 | /** @var ThrowableHandlerInterface $handler */ |
| 206 | 206 | $handler = $container->get(ThrowableHandlerInterface::class); |
@@ -243,7 +243,7 @@ discard block |
||
| 243 | 243 | */ |
| 244 | 244 | public function __construct(Throwable $throwable, int $status) |
| 245 | 245 | { |
| 246 | - parent::__construct((string)$throwable, $status); |
|
| 246 | + parent::__construct((string) $throwable, $status); |
|
| 247 | 247 | $this->setThrowable($throwable); |
| 248 | 248 | } |
| 249 | 249 | }; |
@@ -326,7 +326,7 @@ discard block |
||
| 326 | 326 | ['array', PsrContainerInterface::class, ServerRequestInterface::class], |
| 327 | 327 | ResponseInterface::class |
| 328 | 328 | ), |
| 329 | - 'Handler method should have signature ' . |
|
| 329 | + 'Handler method should have signature '. |
|
| 330 | 330 | '`public static methodName(array, PsrContainerInterface, ServerRequestInterface): ResponseInterface`' |
| 331 | 331 | ); |
| 332 | 332 | |
@@ -374,7 +374,7 @@ discard block |
||
| 374 | 374 | [SapiInterface::class, PsrContainerInterface::class], |
| 375 | 375 | ServerRequestInterface::class |
| 376 | 376 | ), |
| 377 | - 'Factory method should have signature ' . |
|
| 377 | + 'Factory method should have signature '. |
|
| 378 | 378 | '`public static methodName(SapiInterface, PsrContainerInterface): ServerRequestInterface`' |
| 379 | 379 | ); |
| 380 | 380 | |
@@ -395,7 +395,7 @@ discard block |
||
| 395 | 395 | array $handlerParams, |
| 396 | 396 | PsrContainerInterface $container |
| 397 | 397 | ): Closure { |
| 398 | - return function (ServerRequestInterface $request = null) use ( |
|
| 398 | + return function(ServerRequestInterface $request = null) use ( |
|
| 399 | 399 | $handler, |
| 400 | 400 | $handlerParams, |
| 401 | 401 | $container |
@@ -416,7 +416,7 @@ discard block |
||
| 416 | 416 | private function createMethodNotAllowedTerminalHandler(array $allowedMethods): Closure |
| 417 | 417 | { |
| 418 | 418 | // 405 Method Not Allowed |
| 419 | - return function () use ($allowedMethods): ResponseInterface { |
|
| 419 | + return function() use ($allowedMethods): ResponseInterface { |
|
| 420 | 420 | return $this->createEmptyResponse(405, ['Accept' => implode(',', $allowedMethods)]); |
| 421 | 421 | }; |
| 422 | 422 | } |
@@ -427,7 +427,7 @@ discard block |
||
| 427 | 427 | private function createNotFoundTerminalHandler(): Closure |
| 428 | 428 | { |
| 429 | 429 | // 404 Not Found |
| 430 | - return function (): ResponseInterface { |
|
| 430 | + return function(): ResponseInterface { |
|
| 431 | 431 | return $this->createEmptyResponse(404); |
| 432 | 432 | }; |
| 433 | 433 | } |
@@ -471,11 +471,11 @@ discard block |
||
| 471 | 471 | [ServerRequestInterface::class, Closure::class, PsrContainerInterface::class], |
| 472 | 472 | ResponseInterface::class |
| 473 | 473 | ), |
| 474 | - 'Middleware method should have signature ' . |
|
| 474 | + 'Middleware method should have signature '. |
|
| 475 | 475 | '`public static methodName(ServerRequestInterface, Closure, PsrContainerInterface): ResponseInterface`' |
| 476 | 476 | ); |
| 477 | 477 | |
| 478 | - return function (ServerRequestInterface $request) use ($next, $middleware, $container): ResponseInterface { |
|
| 478 | + return function(ServerRequestInterface $request) use ($next, $middleware, $container): ResponseInterface { |
|
| 479 | 479 | return call_user_func($middleware, $request, $next, $container); |
| 480 | 480 | }; |
| 481 | 481 | } |