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