| Conditions | 4 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 20 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | public function _editable($value, Field $field, HTMLElement $previous): HTMLElement |
||
| 26 | { |
||
| 27 | // add extra classes |
||
| 28 | $previous->walk( |
||
| 29 | function ($e) { |
||
| 30 | if ($e instanceof HTMLElement) { |
||
| 31 | if ($e->getTag() === 'input') { |
||
| 32 | $e->setTag('b-input'); |
||
| 33 | } elseif ($e->getTag() === 'select') { |
||
| 34 | $e->setTag('b-select'); |
||
| 35 | } |
||
| 36 | } |
||
| 37 | } |
||
| 38 | ); |
||
| 39 | return $previous; |
||
| 40 | } |
||
| 42 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.