Conditions | 1 |
Paths | 1 |
Total Lines | 6 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
45 | */ |
||
46 | 3 | protected function addElement(\DomDocument $document, \DOMElement $rootElement, NodeInterface $node) : void |
|
47 | { |
||
48 | 3 | $description = htmlspecialchars($node->getDescription()); |
|
49 | |||
50 | 3 | $rootElement->appendChild($document->createElement($this->getNodeName(), $description)); |
|
51 | 3 | } |
|
53 |