| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 11 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | 2 | public function format( |
|
| 38 | TransactionRolledBackExceptionInterface $rollback |
||
| 39 | ): string { |
||
| 40 | 2 | return implode( |
|
| 41 | 2 | PHP_EOL, |
|
| 42 | 2 | array_reduce( |
|
| 43 | 2 | $rollback->getFailures(), |
|
| 44 | function ( |
||
| 45 | array $carry, |
||
| 46 | OperationFailureInterface $failure |
||
| 47 | ): array { |
||
| 48 | 1 | $carry[] = $this->failureFormatter->format($failure); |
|
| 49 | |||
| 50 | 1 | return $carry; |
|
| 51 | 2 | }, |
|
| 52 | [ |
||
| 53 | 2 | $rollback->getMessage(), |
|
| 54 | 2 | '', |
|
| 55 | 2 | 'Stacktrace:' |
|
| 56 | ] |
||
| 61 |