| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | public static function format(\Throwable $exception): string |
||
| 10 | { |
||
| 11 | return \sprintf( |
||
| 12 | 'Error: %s in %s:%s.', |
||
| 13 | $exception->getMessage(), |
||
| 14 | // Do not use full path for security reasons; errors are sometimes forwarded to customers. |
||
| 15 | \basename($exception->getFile(), '.php'), |
||
| 16 | $exception->getLine(), |
||
| 17 | ); |
||
| 20 |