Completed
Pull Request — master (#116)
by Richard
02:30
created
src/Pseudo/Attribute.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,9 @@
 block discarded – undo
15 15
 
16 16
 	public function match($pseudo, \DomElement $element) {//var_dump(Tokenizer::OPEN_SQUARE_BRACKET); var_Dump($pseudo[0]['type']);var_Dump($pseudo[1]['type']);
17 17
 		if ($pseudo[0]['type'] !== Tokenizer::OPEN_SQUARE_BRACKET
18
-			&& (isset($pseudo[1]) && $pseudo[1]['type'] !== Tokenizer::OPEN_SQUARE_BRACKET)) return true;
18
+			&& (isset($pseudo[1]) && $pseudo[1]['type'] !== Tokenizer::OPEN_SQUARE_BRACKET)) {
19
+			return true;
20
+		}
19 21
 
20 22
 		$this->functionSet->setElement($element);
21 23
 		$valueParser = new \Transphporm\Parser\Value($this->functionSet);
Please login to merge, or discard this patch.
src/Pseudo/Nth.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,8 +17,11 @@
 block discarded – undo
17 17
 			$pseudo = $tokenizer->getTokens();
18 18
 			$num = end($pseudo)['value'][0]['value'];
19 19
 
20
-			if (is_callable([$this, $criteria])) return $this->$criteria($num);
21
-			else return $num == $criteria;
20
+			if (is_callable([$this, $criteria])) {
21
+				return $this->$criteria($num);
22
+			} else {
23
+				return $num == $criteria;
24
+			}
22 25
 		}
23 26
 		return true;
24 27
 	}
Please login to merge, or discard this patch.