@@ -31,7 +31,9 @@ discard block |
||
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 |
||
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 |
@@ -30,7 +30,9 @@ |
||
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; |