| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | public function renderException(\Throwable $e, int $verbosity = self::VERBOSITY_VERBOSE): string |
||
| 22 | { |
||
| 23 | return json_encode([ |
||
| 24 | 'error' => sprintf( |
||
| 25 | '[%s] %s as %s:%s', |
||
| 26 | get_class($e), |
||
| 27 | $e->getMessage(), |
||
| 28 | $e->getFile(), |
||
| 29 | $e->getLine() |
||
| 30 | ), |
||
| 31 | 'stacktrace' => iterator_to_array($this->renderTrace($e->getTrace(), $verbosity)) |
||
| 32 | ]); |
||
| 70 |