| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | 36 | public function createElementFromField(FieldInterface $field): DOMNode |
|
| 27 | { |
||
| 28 | 36 | $element = $this->createElement($field->getTag()); |
|
| 29 | |||
| 30 | 36 | foreach ($field->getAttributes() as $key => $value) { |
|
| 31 | 36 | $element = $this->setAttribute($field, $element, $key, $value); |
|
| 32 | } |
||
| 33 | |||
| 34 | 36 | return $element; |
|
| 35 | } |
||
| 50 |