| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 29 | 15 | public static function throwableToString(Throwable $t): string |
|
| 30 | { |
||
| 31 | 15 | return sprintf( |
|
| 32 | 15 | <<<TEXT |
|
| 33 | %s with message "%s" |
||
| 34 | |||
| 35 | in %s:%s |
||
| 36 | |||
| 37 | Stack trace: |
||
| 38 | %s |
||
| 39 | 15 | TEXT, |
|
| 40 | 15 | $t::class, |
|
| 41 | 15 | $t->getMessage(), |
|
| 42 | 15 | $t->getFile(), |
|
| 43 | 15 | $t->getLine(), |
|
| 44 | 15 | $t->getTraceAsString() |
|
| 45 | 15 | ); |
|
| 48 |