| Conditions | 3 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | 453 | protected function generateTrace(string $message): string |
|
| 27 | { |
||
| 28 | 453 | $result = []; |
|
| 29 | 453 | $result[] = $message; |
|
| 30 | |||
| 31 | 453 | if ($this->trace !== []) { |
|
| 32 | 410 | $result[] = 'Container stack trace:'; |
|
| 33 | |||
| 34 | 410 | foreach (\array_reverse($this->trace) as $item) { |
|
| 35 | 410 | $result[] = '- ' . $item; |
|
| 36 | } |
||
| 37 | } |
||
| 38 | |||
| 39 | 453 | return \implode(PHP_EOL, $result); |
|
| 40 | } |
||
| 42 |