| Conditions | 1 |
| Paths | 1 |
| Total Lines | 6 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 52 | 5 | protected function addElement(\DomDocument $document, \DOMElement $rootElement, NodeInterface $node) : void |
|
| 53 | { |
||
| 54 | 5 | $title = htmlspecialchars($node->getTitle()); |
|
| 55 | 5 | $element = $document->createElement(static::NODE_NAME, $title); |
|
| 56 | 5 | $rootElement->appendChild($element); |
|
| 57 | 5 | } |
|
| 58 | } |
||
| 59 |