| Conditions | 3 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 15 | public function editable($value, Field $field, HTMLElement $previous): HTMLElement |
||
| 16 | { |
||
| 17 | $previous->filter( |
||
| 18 | function ($e) { |
||
| 19 | if ($e->getTag() === 'canvas') { |
||
| 20 | return false; |
||
| 21 | } |
||
| 22 | if ($e->hasAttribute('style')) { |
||
| 23 | return false; |
||
| 24 | } |
||
| 25 | return true; |
||
| 26 | } |
||
| 27 | ); |
||
| 28 | |||
| 29 | return $this->fix($value, $field, $previous); |
||
| 30 | } |
||
| 32 |