Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
26 | 1 | public function process(ServerRequestInterface $request, RequestHandlerInterface $next): ResponseInterface |
|
27 | { |
||
28 | try { |
||
29 | 1 | $response = $next->handle($request); |
|
30 | 1 | } catch (NotFoundException $exception) { |
|
31 | 1 | $response = Response::fromText('Not Found', Response::HTTP_NOT_FOUND); |
|
32 | } |
||
33 | |||
34 | 1 | return $response; |
|
35 | } |
||
37 |