Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 2 |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
33 | 1 | private function buildMessage(Unbound $e, array $msg) |
|
34 | { |
||
35 | 1 | $lastE = $e; |
|
36 | 1 | while ($e instanceof Unbound) { |
|
37 | 1 | $msg[] = sprintf("- %s\n", $e->getMessage()); |
|
38 | 1 | $lastE = $e; |
|
39 | 1 | $e = $e->getPrevious(); |
|
40 | } |
||
41 | 1 | array_pop($msg); |
|
42 | 1 | $msg = array_reverse($msg); |
|
43 | |||
44 | 1 | return $this->getMainMessage($lastE) . implode('', $msg); |
|
45 | } |
||
46 | |||
56 |