Conditions | 4 |
Paths | 4 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 20 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
60 | protected function generateElementsErrors() |
||
61 | { |
||
62 | $elements = $this->getElements(); |
||
63 | $this->errorsByField = []; |
||
64 | if (is_array($elements)) { |
||
65 | foreach ($elements as $name => $element) { |
||
66 | $elementErrors = $element->getErrors(); |
||
67 | if (count($elementErrors)) { |
||
68 | $this->errorsByField[$name] = $elementErrors; |
||
69 | } |
||
74 |