| Conditions | 2 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public function convert(Throwable $throwable): string |
||
| 32 | { |
||
| 33 | $inspector = new ExceptionInspector($throwable); |
||
| 34 | $errorDetails = json_encode([ |
||
| 35 | "error" => $this->clearTitle($throwable), |
||
| 36 | "details" => $this->details($throwable, $inspector) |
||
| 37 | ]); |
||
| 38 | return $errorDetails ?: ''; |
||
| 39 | } |
||
| 49 |