Conditions | 2 |
Paths | 2 |
Total Lines | 6 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
31 | 12 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
|
32 | { |
||
33 | try { |
||
34 | 12 | return $handler->handle($request); |
|
35 | 1 | } catch (\Throwable $exception) { |
|
36 | 1 | return $this->errorHandler->handle($request->withAttribute('exception', $exception)); |
|
37 | } |
||
40 |