| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types = 1); |
||
| 41 | private function registerExceptionHandler(): void |
||
| 42 | { |
||
| 43 | if (!$this->debugEnabled) { |
||
| 44 | return; |
||
| 45 | } |
||
| 46 | |||
| 47 | $whoops = new Run(); |
||
| 48 | |||
| 49 | $handler = new PrettyPageHandler(); |
||
| 50 | $handler->setEditor($this->editor); |
||
| 51 | |||
| 52 | $whoops->pushHandler($handler); |
||
| 53 | $whoops->register(); |
||
| 54 | } |
||
| 56 |