| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function renderVerbose(\Throwable $t): string |
||
| 19 | { |
||
| 20 | $out = '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>'; |
||
| 21 | $out .= "<error>\n"; |
||
| 22 | $out .= $this->tag('type', get_class($t)); |
||
| 23 | $out .= $this->tag('message', $this->cdata($t->getMessage())); |
||
| 24 | $out .= $this->tag('code', $this->cdata($t->getCode())); |
||
| 25 | $out .= $this->tag('file', $t->getFile()); |
||
| 26 | $out .= $this->tag('line', $t->getLine()); |
||
| 27 | $out .= $this->tag('trace', $t->getTraceAsString()); |
||
| 28 | $out .= '</error>'; |
||
| 29 | return $out; |
||
| 30 | } |
||
| 42 |