Conditions | 4 |
Paths | 2 |
Total Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
31 | protected function selectAlternateLink(NodeInterface $node, \DOMElement $element): void |
||
32 | { |
||
33 | if ( |
||
34 | ($element->hasAttribute('rel') && $element->getAttribute('rel') == 'alternate') |
||
35 | || is_null($node->getLink()) |
||
36 | ) { |
||
37 | $node->setLink($element->getAttribute('href')); |
||
38 | } |
||
39 | } |
||
40 | |||
52 |