| Total Complexity | 3 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Coverage | 88.89% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | abstract class ThrowableRenderer implements ThrowableRendererInterface |
||
| 11 | { |
||
| 12 | 11 | protected function getThrowableName(Throwable $t): string |
|
| 13 | { |
||
| 14 | 11 | $name = get_class($t); |
|
| 15 | |||
| 16 | 11 | if ($t instanceof FriendlyExceptionInterface) { |
|
| 17 | $name = $t->getName() . ' (' . $name . ')'; |
||
| 18 | } |
||
| 19 | |||
| 20 | 11 | return $name; |
|
| 21 | } |
||
| 22 | |||
| 23 | 10 | protected function convertThrowableToVerboseString(Throwable $t): string |
|
| 28 | } |
||
| 29 | } |
||
| 30 |