Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 14 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
30 | 6 | private function getMessageDetails(): string |
|
31 | { |
||
32 | 6 | $result = ''; |
|
33 | 6 | $num = 0; |
|
34 | 6 | foreach ($this->exceptions as $exception) { |
|
35 | 5 | $result .= \sprintf( |
|
36 | 5 | "\n\n%d) %s:%s\n[%s] #%d: %s", |
|
37 | 5 | ++$num, |
|
38 | 5 | $exception->getFile(), |
|
39 | 5 | $exception->getLine(), |
|
40 | 5 | \get_class($exception), |
|
41 | 5 | $exception->getCode(), |
|
42 | 5 | $exception->getMessage() |
|
43 | 5 | ); |
|
44 | } |
||
45 | 6 | return $result; |
|
46 | } |
||
48 |