@@ -50,6 +50,9 @@ |
||
50 | 50 | return $attr; |
51 | 51 | } |
52 | 52 | |
53 | + /** |
|
54 | + * @param string $comparator |
|
55 | + */ |
|
53 | 56 | private static function compare($comparator, $a, $b) { |
54 | 57 | if ($comparator == '=') return $a == $b; |
55 | 58 | else if ($comparator == '!=') return $a != $b; |
@@ -25,6 +25,11 @@ |
||
25 | 25 | return true; |
26 | 26 | } |
27 | 27 | |
28 | + /** |
|
29 | + * @param \Transphporm\Parser\Value $valueParser |
|
30 | + * @param \DOMXPath $xpath |
|
31 | + * @param \DOMElement $element |
|
32 | + */ |
|
28 | 33 | private function notElement($css, $valueParser, $xpath, $element) { |
29 | 34 | foreach ($css as $selector) { |
30 | 35 | $xpathString = $this->cssToXpath->getXpath($selector); |