@@ -15,7 +15,9 @@ discard block |
||
15 | 15 | } |
16 | 16 | |
17 | 17 | public function match($name, $args, \DomElement $element) { |
18 | - if ($name !== 'not') return true; |
|
18 | + if ($name !== 'not') { |
|
19 | + return true; |
|
20 | + } |
|
19 | 21 | |
20 | 22 | $xpath = new \DomXpath($element->ownerDocument); |
21 | 23 | return $this->notElement($args, $xpath, $element); |
@@ -31,7 +33,9 @@ discard block |
||
31 | 33 | //Find all nodes matched by the expressions in the brackets :not(EXPR) |
32 | 34 | foreach ($xpath->query($xpathString) as $matchedElement) { |
33 | 35 | //Check to see whether this node was matched by the not query |
34 | - if ($pseudoMatcher->matches($matchedElement) && $element->isSameNode($matchedElement)) return false; |
|
36 | + if ($pseudoMatcher->matches($matchedElement) && $element->isSameNode($matchedElement)) { |
|
37 | + return false; |
|
38 | + } |
|
35 | 39 | } |
36 | 40 | } |
37 | 41 | return true; |