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