| Conditions | 4 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function register() |
||
| 14 | { |
||
| 15 | (new Run())->pushHandler(\ENV === 'dev' |
||
|
|
|||
| 16 | ? new PrettyPageHandler() |
||
| 17 | : function () { |
||
| 18 | $errorPagePath = $this->getErrorPagePath(); |
||
| 19 | if ($errorPagePath && \file_exists($errorPagePath)) { |
||
| 20 | echo \file_get_contents($errorPagePath); |
||
| 21 | } else { |
||
| 22 | echo 'System error'; |
||
| 23 | } |
||
| 24 | })->register(); |
||
| 25 | } |
||
| 43 |