| Conditions | 3 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 3.072 |
| Changes | 0 | ||
| 1 | <?php |
||
| 46 | 2 | public function addElement(\DomDocument $document, \DOMElement $rootElement, NodeInterface $node): void |
|
| 47 | { |
||
| 48 | 2 | if (!($node instanceof FeedInterface) || is_null($node->getLanguage())) { |
|
| 49 | return; |
||
| 50 | } |
||
| 51 | 2 | $rootElement->appendChild($document->createElement($this->getNodeName(), $node->getLanguage())); |
|
| 52 | 2 | } |
|
| 53 | } |
||
| 54 |