| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 45 | 2 | public function __invoke(Request $request, Response $response, Throwable $exception): Response |
|
| 46 | { |
||
| 47 | 2 | $this->logger->critical($exception); |
|
| 48 | |||
| 49 | 2 | if (!is_null($this->nextHandler)) { |
|
| 50 | 1 | return ($this->nextHandler)($request, $response, $exception); |
|
| 51 | } |
||
| 52 | |||
| 53 | 1 | return $response; |
|
| 54 | } |
||
| 55 | } |
||
| 56 |