Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
10 | 1 | public function renderBlock(FieldInterface $field, DOMElement $element): DOMElement |
|
11 | { |
||
12 | 1 | $element->removeAttribute('type'); |
|
13 | 1 | $element->removeAttribute('value'); |
|
14 | 1 | $text = $this->createText($field->getValue()); |
|
15 | 1 | $element->appendChild($text); |
|
16 | 1 | return $element; |
|
17 | } |
||
20 |