Completed
Push — master ( d872cd...720a5f )
by Richard
02:14
created
src/Pseudo/Not.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.