| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 53 | private function buildErrorString($errors, $errorString = '', string $field = null): string |
||
| 54 | { |
||
| 55 | foreach ($errors as $key => $value) { |
||
| 56 | if (is_array($value)) { |
||
| 57 | $errorString .= $this->buildErrorString($value, $errorString, $key); |
||
| 58 | } else { |
||
| 59 | $errorString .= $this->buildErrorLine($field, $value); |
||
| 60 | } |
||
| 61 | } |
||
| 62 | |||
| 63 | return $errorString; |
||
| 64 | } |
||
| 65 | |||
| 76 |