Conditions | 3 |
Paths | 4 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | /** |
||
15 | * Returns all the validation rules for the fields in this Fieldset |
||
16 | * |
||
17 | * @return array |
||
18 | */ |
||
19 | public function validationRules() { |
||
20 | $rules = []; |
||
21 | |||
22 | $this->fields->each(function ($field) use (&$rules) { |
||
23 | $rules = array_merge($rules, $field->validationRules()); |
||
24 | }); |
||
60 | } |
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.