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