Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
34 | protected function addElement(\DomDocument $document, \DOMElement $rootElement, NodeInterface $node) : void |
||
35 | { |
||
36 | $element = $document->createElement(static::NODE_NAME); |
||
37 | $element->setAttribute('href', $node->getLink()); |
||
38 | |||
39 | $rootElement->appendChild($element); |
||
40 | } |
||
41 | } |
||
42 |