| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 60 | 1 | public function getErrors(?ErrorMessageFormatterInterface $formatter = null): array |
|
| 61 | { |
||
| 62 | 1 | $errors = []; |
|
| 63 | 1 | foreach ($this->results as $attribute => $result) { |
|
| 64 | 1 | if (!$result->isValid()) { |
|
| 65 | 1 | $errors[$attribute] = $result->getErrors($formatter); |
|
| 66 | } |
||
| 67 | } |
||
| 68 | |||
| 69 | 1 | return $errors; |
|
| 70 | } |
||
| 77 |