| @@ -178,7 +178,7 @@ discard block | ||
| 178 | 178 | * | 
| 179 | 179 | * @return ResponseInterface | 
| 180 | 180 | */ | 
| 181 | - protected function handleRequest(Closure $handler, ?RequestInterface $request): ResponseInterface | |
| 181 | + protected function handleRequest(Closure $handler, ?RequestInterface $request) : ResponseInterface | |
| 182 | 182 |      { | 
| 183 | 183 | $response = call_user_func($handler, $request); | 
| 184 | 184 | |
| @@ -196,7 +196,7 @@ discard block | ||
| 196 | 196 | protected function handleThrowable( | 
| 197 | 197 | Throwable $throwable, | 
| 198 | 198 | ?PsrContainerInterface $container | 
| 199 | -    ): ThrowableResponseInterface { | |
| 199 | +    ) : ThrowableResponseInterface { | |
| 200 | 200 |          if ($container !== null && $container->has(ThrowableHandlerInterface::class) === true) { | 
| 201 | 201 | /** @var ThrowableHandlerInterface $handler */ | 
| 202 | 202 | /** @noinspection PhpUnhandledExceptionInspection */ | 
| @@ -240,7 +240,7 @@ discard block | ||
| 240 | 240 | */ | 
| 241 | 241 | public function __construct(Throwable $throwable, int $status) | 
| 242 | 242 |              { | 
| 243 | - parent::__construct((string)$throwable, $status); | |
| 243 | + parent::__construct((string) $throwable, $status); | |
| 244 | 244 | $this->setThrowable($throwable); | 
| 245 | 245 | } | 
| 246 | 246 | }; | 
| @@ -323,7 +323,7 @@ discard block | ||
| 323 | 323 | ['array', PsrContainerInterface::class, ServerRequestInterface::class], | 
| 324 | 324 | ResponseInterface::class | 
| 325 | 325 | ), | 
| 326 | - 'Handler method should have signature ' . | |
| 326 | + 'Handler method should have signature '. | |
| 327 | 327 | '`public static methodName(array, PsrContainerInterface, ServerRequestInterface): ResponseInterface`' | 
| 328 | 328 | ); | 
| 329 | 329 | |
| @@ -364,7 +364,7 @@ discard block | ||
| 364 | 364 | array $handlerParams, | 
| 365 | 365 | PsrContainerInterface $container | 
| 366 | 366 |      ): Closure { | 
| 367 | - return function (ServerRequestInterface $request = null) use ( | |
| 367 | + return function(ServerRequestInterface $request = null) use ( | |
| 368 | 368 | $handler, | 
| 369 | 369 | $handlerParams, | 
| 370 | 370 | $container | 
| @@ -396,7 +396,7 @@ discard block | ||
| 396 | 396 | [SapiInterface::class, PsrContainerInterface::class], | 
| 397 | 397 | ServerRequestInterface::class | 
| 398 | 398 | ), | 
| 399 | - 'Factory method should have signature ' . | |
| 399 | + 'Factory method should have signature '. | |
| 400 | 400 | '`public static methodName(SapiInterface, PsrContainerInterface): ServerRequestInterface`' | 
| 401 | 401 | ); | 
| 402 | 402 | |
| @@ -413,7 +413,7 @@ discard block | ||
| 413 | 413 | private function createMethodNotAllowedTerminalHandler(array $allowedMethods): Closure | 
| 414 | 414 |      { | 
| 415 | 415 | // 405 Method Not Allowed | 
| 416 | -        return function () use ($allowedMethods): ResponseInterface { | |
| 416 | +        return function() use ($allowedMethods): ResponseInterface { | |
| 417 | 417 |              return $this->createEmptyResponse(405, ['Accept' => implode(',', $allowedMethods)]); | 
| 418 | 418 | }; | 
| 419 | 419 | } | 
| @@ -424,7 +424,7 @@ discard block | ||
| 424 | 424 | private function createNotFoundTerminalHandler(): Closure | 
| 425 | 425 |      { | 
| 426 | 426 | // 404 Not Found | 
| 427 | -        return function (): ResponseInterface { | |
| 427 | +        return function(): ResponseInterface { | |
| 428 | 428 | return $this->createEmptyResponse(404); | 
| 429 | 429 | }; | 
| 430 | 430 | } | 
| @@ -470,11 +470,11 @@ discard block | ||
| 470 | 470 | [ServerRequestInterface::class, Closure::class, PsrContainerInterface::class], | 
| 471 | 471 | ResponseInterface::class | 
| 472 | 472 | ), | 
| 473 | - 'Middleware method should have signature ' . | |
| 473 | + 'Middleware method should have signature '. | |
| 474 | 474 | '`public static methodName(ServerRequestInterface, Closure, PsrContainerInterface): ResponseInterface`' | 
| 475 | 475 | ); | 
| 476 | 476 | |
| 477 | -        return function (ServerRequestInterface $request) use ($next, $middleware, $container): ResponseInterface { | |
| 477 | +        return function(ServerRequestInterface $request) use ($next, $middleware, $container): ResponseInterface { | |
| 478 | 478 | return call_user_func($middleware, $request, $next, $container); | 
| 479 | 479 | }; | 
| 480 | 480 | } |