Conditions | 4 |
Paths | 8 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | public function editable($value, Field $field, HTMLElement $previous): HTMLElement |
||
16 | { |
||
17 | foreach ($previous->get('input') as $input) { |
||
18 | $input->setAttribute('v-model', $field->getName()) |
||
19 | ->removeAttribute('value'); |
||
20 | } |
||
21 | foreach ($previous->get('textarea') as $textarea) { |
||
22 | $textarea->setAttribute('v-model', $field->getName()); |
||
23 | } |
||
24 | foreach ($previous->get('select') as $input) { |
||
25 | $input->setAttribute('v-model', $field->getName()) |
||
26 | ->removeAttribute('value'); |
||
27 | } |
||
28 | return $previous; |
||
29 | } |
||
31 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.