| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 23 | public function editable($value, Field $field, HTMLElement $previous): HTMLElement |
||
| 24 | { |
||
| 25 | $previous = $this->_editable($value, $field, $previous); |
||
| 26 | foreach ($previous->get('[type=file]') as $input) { |
||
| 27 | $input->setAttribute('v-on:change', 'changedFile(' . $field->getName() . ', $event)') |
||
| 28 | ->removeAttribute('v-model'); |
||
| 29 | } |
||
| 30 | return $previous; |
||
| 31 | } |
||
| 33 |