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