| Conditions | 3 |
| Paths | 3 |
| Total Lines | 16 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 27 | public function _editable($value, Field $field, HTMLNode $previous): HTMLNode |
||
| 28 | { |
||
| 29 | // create a div around the old select |
||
| 30 | $oldSelect = $previous->get('select')[0]; |
||
| 31 | $newSelect = clone $oldSelect; |
||
| 32 | $oldSelect->setTag('div')->setAttribute('class', 'select')->setContent($newSelect); |
||
| 33 | |||
| 34 | foreach ($previous->getContent() as $e) { |
||
| 35 | if ($e->getAttribute('class') === ['formularium-comment']) { |
||
| 36 | $e->setTag('p')->setAttributes([ |
||
| 37 | 'class' => 'help', |
||
| 38 | ]); |
||
| 39 | } |
||
| 40 | } |
||
| 41 | |||
| 42 | return $previous; |
||
| 43 | } |
||
| 45 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.