Total Complexity | 5 |
Total Lines | 53 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
5 | class LsfFieldset extends \Riclep\Storyblok\Block |
||
6 | { |
||
7 | //// potentially all fields in a fieldset could be name <input name="fieldsetname[fieldname]"> |
||
8 | /// this would out a multidimensional array in the response. |
||
9 | /// makes validation herder? |
||
10 | |||
11 | protected $inFieldSet = false; |
||
12 | protected $isRepeating = false; |
||
13 | |||
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 | }); |
||
25 | |||
26 | return $rules; |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * Returns all the error messages for the fields in this Fieldset |
||
31 | * |
||
32 | * @return array |
||
33 | */ |
||
34 | public function errorMessages() { |
||
42 | } |
||
43 | |||
44 | public function response($input) { |
||
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.