| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public function handle(): int |
||
| 27 | { |
||
| 28 | $exception = $this->getException(); |
||
| 29 | $level = LogLevel::CRITICAL; |
||
| 30 | |||
| 31 | if ($exception instanceof \ErrorException) { |
||
| 32 | $level = $this->translateError($exception); |
||
| 33 | } |
||
| 34 | |||
| 35 | $this->logger->log($level, $exception->getMessage().$exception->getTraceAsString()); |
||
| 36 | |||
| 37 | return Handler::DONE; |
||
| 38 | } |
||
| 39 | |||
| 74 |