| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 52 | 2 | private static function handleException(Handlers $handlers, Exception $exception): string |
|
| 53 | { |
||
| 54 | 2 | $handler = $handlers->getByException($exception); |
|
| 55 | 2 | if ($handler === null) { |
|
| 56 | 1 | header('HTTP/1.1 500 Internal Server Error'); |
|
| 57 | 1 | return ''; |
|
| 58 | } |
||
| 59 | |||
| 60 | 1 | return $handler($exception); |
|
| 61 | } |
||
| 63 |