Conditions | 3 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
37 | 36 | private function setAttribute(FieldInterface $field, DOMElement $element, $key, $value): DOMNode |
|
38 | { |
||
39 | 36 | if ($field instanceof ArrayValueInterface && $key === 'value') { |
|
40 | 11 | return $element; |
|
41 | } |
||
42 | |||
43 | 36 | $element->setAttribute($key, (string) $value); |
|
44 | |||
45 | 36 | return $element; |
|
46 | } |
||
50 |