Completed
Push — master ( cc4ebe...d2d04e )
by Tom
02:30
created
src/Hook/PseudoMatcher.php 1 patch
Braces   +12 added lines, -4 removed lines patch added patch discarded remove patch
@@ -31,7 +31,9 @@  discard block
 block discarded – undo
31 31
 	
32 32
 	public function hasFunction($name) {
33 33
 		foreach ($this->pseudo as $pseudo) {
34
-			if (strpos($pseudo, $name) === 0) return true;
34
+			if (strpos($pseudo, $name) === 0) {
35
+				return true;
36
+			}
35 37
 		}
36 38
 	}
37 39
 
@@ -50,10 +52,16 @@  discard block
 block discarded – undo
50 52
 		$parenthesis = strpos($pseudo, '(');
51 53
 		$square = strpos($pseudo, ']');
52 54
 
53
-		if ($parenthesis === false) $parenthesis = 999;
54
-		if ($square === false) $square = 999;
55
+		if ($parenthesis === false) {
56
+			$parenthesis = 999;
57
+		}
58
+		if ($square === false) {
59
+			$square = 999;
60
+		}
55 61
 
56
-		if ($parenthesis < $square) return ['(', ')'];
62
+		if ($parenthesis < $square) {
63
+			return ['(', ')'];
64
+		}
57 65
 		return ['[', ']'];
58 66
 	}
59 67
 	
Please login to merge, or discard this patch.
src/Pseudo/Not.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,9 @@
 block discarded – undo
30 30
 			//Find all nodes matched by the expressions in the brackets :not(EXPR)
31 31
 			foreach ($xpath->query($xpathString) as $matchedElement) {
32 32
 				//Check to see whether this node was matched by the not query
33
-				if ($element->isSameNode($matchedElement)) return false;
33
+				if ($element->isSameNode($matchedElement)) {
34
+					return false;
35
+				}
34 36
 			}
35 37
 		}
36 38
 		return true;
Please login to merge, or discard this patch.