| Conditions | 5 |
| Paths | 5 |
| Total Lines | 27 |
| Code Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 40 | private function renderTrace(array $trace, int $verbosity): \Generator |
||
| 41 | { |
||
| 42 | foreach ($trace as $item) { |
||
| 43 | $result = []; |
||
| 44 | |||
| 45 | if (isset($item['class'])) { |
||
| 46 | $result['function'] = sprintf( |
||
| 47 | '%s%s%s()', |
||
| 48 | $item['class'], |
||
| 49 | $item['type'], |
||
| 50 | $item['function'] |
||
| 51 | ); |
||
| 52 | } else { |
||
| 53 | $result['function'] = sprintf( |
||
| 54 | '%s()', |
||
| 55 | $item['function'] |
||
| 56 | ); |
||
| 57 | } |
||
| 58 | |||
| 59 | if ($verbosity >= self::VERBOSITY_VERBOSE && isset($item['file'])) { |
||
| 60 | $result['at'] = [ |
||
| 61 | 'file' => $item['file'] ?? null, |
||
| 62 | 'line' => $item['line'] ?? null |
||
| 63 | ]; |
||
| 64 | } |
||
| 65 | |||
| 66 | yield$result; |
||
| 67 | } |
||
| 70 |