| Conditions | 4 |
| Paths | 6 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 58 | protected function getFormErrors(FormInterface $form) |
||
| 59 | { |
||
| 60 | $errors = []; |
||
| 61 | foreach ($form->getErrors() as $error) { |
||
| 62 | $errors[] = Translator::instance()->trans($error->getMessage(), [], 'validators'); |
||
|
|
|||
| 63 | } |
||
| 64 | foreach ($form->all() as $child) { |
||
| 65 | if (!$child->isValid()) { |
||
| 66 | $errors[$child->getName()] = $this->getFormErrors($child); |
||
| 67 | } |
||
| 68 | } |
||
| 69 | |||
| 70 | return $errors; |
||
| 71 | } |
||
| 72 | } |
||
| 73 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.