| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 17 | public function _editable($value, Field $field, HTMLElement $previous): HTMLElement |
||
| 18 | { |
||
| 19 | // add extra classes |
||
| 20 | $input = $previous->get('input'); |
||
| 21 | $input[0]->setAttributes([ |
||
| 22 | 'class' => 'form-control', |
||
| 23 | ]); |
||
| 24 | $comment = $previous->get('div.comment'); |
||
| 25 | if ($comment) { |
||
| 26 | $comment[0]->setTag('small')->setAttributes([ |
||
| 27 | 'class' => 'form-text text-muted', |
||
| 28 | ]); |
||
| 29 | } |
||
| 30 | return $previous; |
||
| 31 | } |
||
| 33 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.