@@ -84,9 +84,9 @@ discard block |
||
84 | 84 | $splos->rewind(); |
85 | 85 | $first = $splos->current(); |
86 | 86 | if ($first instanceof \DOMDocument) { |
87 | - $this->dom = $first;//->documentElement; |
|
87 | + $this->dom = $first; //->documentElement; |
|
88 | 88 | } else { |
89 | - $this->dom = $first->ownerDocument;//->documentElement; |
|
89 | + $this->dom = $first->ownerDocument; //->documentElement; |
|
90 | 90 | } |
91 | 91 | |
92 | 92 | $this->scopeNode = $scopeNode; |
@@ -264,7 +264,7 @@ discard block |
||
264 | 264 | return $this->combineAnyDescendant($node, $selectors, $index); |
265 | 265 | case SimpleSelector::ANOTHER_SELECTOR: |
266 | 266 | // fprintf(STDOUT, "Next selector: %s\n", $selectors[$index]); |
267 | - return $this->matchesSimpleSelector($node, $selectors, $index);; |
|
267 | + return $this->matchesSimpleSelector($node, $selectors, $index); ; |
|
268 | 268 | } |
269 | 269 | |
270 | 270 | return false; |
@@ -776,7 +776,7 @@ discard block |
||
776 | 776 | $name = $pseudoClass['name']; |
777 | 777 | // Avoid E_STRICT violation. |
778 | 778 | $value = $pseudoClass['value'] ?? NULL; |
779 | - $ret &= $this->psHandler->elementMatches($name, $node, $this->scopeNode, $value); |
|
779 | + $ret &= $this->psHandler->elementMatches($name, $node, $this->scopeNode, $value); |
|
780 | 780 | } |
781 | 781 | |
782 | 782 | return $ret; |