| 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 | 5 | private function getMessageDetails(): string |
|
| 32 | { |
||
| 33 | 5 | $result = ''; |
|
| 34 | 5 | $num = 0; |
|
| 35 | 5 | foreach ($this->exceptions as $exception) { |
|
| 36 | 4 | $result .= sprintf( |
|
| 37 | 4 | "\n\n%d) %s:%s\n[%s] #%d: %s", |
|
| 38 | 4 | ++$num, |
|
| 39 | 4 | $exception->getFile(), |
|
| 40 | 4 | $exception->getLine(), |
|
| 41 | 4 | get_class($exception), |
|
| 42 | 4 | $exception->getCode(), |
|
| 43 | 4 | $exception->getMessage() |
|
| 44 | ); |
||
| 45 | } |
||
| 46 | 5 | return $result; |
|
| 47 | } |
||
| 49 |