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