Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | public function handler(mixed $message, array $context = []): string |
||
22 | { |
||
23 | if ($message instanceof Exception) { |
||
24 | $msg = $this->encode($this->clearEof($message->getMessage())); |
||
25 | $exception = $this->encode($this->format($message)); |
||
26 | |||
27 | return sprintf('%s %s', $msg, $exception); |
||
28 | } |
||
29 | |||
30 | return parent::handler($message, $context); |
||
31 | } |
||
60 |