| Conditions | 5 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 21 | public function editable($value, Field $field, HTMLNode $previous): HTMLNode |
||
| 22 | { |
||
| 23 | /** @var HTMLNode $base */ |
||
| 24 | $base = $this->_editable($value, $field, $previous); |
||
| 25 | |||
| 26 | $base->filter(function ($e) { |
||
| 27 | if ($e instanceof HTMLNode) { |
||
| 28 | if ($e->getTag() === 'label') { |
||
| 29 | return false; |
||
| 30 | } |
||
| 31 | if ($e->getTag() === 'div' && $e->getAttribute('class') === ['formularium-comment']) { |
||
| 32 | return false; |
||
| 33 | } |
||
| 34 | } |
||
| 35 | return true; |
||
| 36 | }); |
||
| 37 | |||
| 38 | return $base; |
||
| 39 | } |
||
| 41 |