@@ -63,6 +63,9 @@ discard block |
||
63 | 63 | return $rules; |
64 | 64 | } |
65 | 65 | |
66 | + /** |
|
67 | + * @param integer $indexStart |
|
68 | + */ |
|
66 | 69 | private function parseTokens($indexStart) { |
67 | 70 | $rules = []; |
68 | 71 | $line = 1; |
@@ -90,6 +93,10 @@ discard block |
||
90 | 93 | if (empty($rules) && count($this->tss) > 0) throw new \Exception('No TSS rules parsed'); |
91 | 94 | } |
92 | 95 | |
96 | + /** |
|
97 | + * @param integer $index |
|
98 | + * @param integer $line |
|
99 | + */ |
|
93 | 100 | private function CssToRules($selector, $index, $properties, $line) { |
94 | 101 | $parts = $selector->trim()->splitOnToken(Tokenizer::ARG); |
95 | 102 | $rules = []; |
@@ -113,6 +120,9 @@ discard block |
||
113 | 120 | return $rules; |
114 | 121 | } |
115 | 122 | |
123 | + /** |
|
124 | + * @param integer $indexStart |
|
125 | + */ |
|
116 | 126 | private function processingInstructions($token, $indexStart) { |
117 | 127 | if ($token['type'] !== Tokenizer::AT_SIGN) return false; |
118 | 128 | $tokens = $this->tss->from(Tokenizer::AT_SIGN, false)->to(Tokenizer::SEMI_COLON, false); |
@@ -138,6 +148,10 @@ discard block |
||
138 | 148 | return ($a->depth < $b->depth) ? -1 : 1; |
139 | 149 | } |
140 | 150 | |
151 | + /** |
|
152 | + * @param string $open |
|
153 | + * @param string $close |
|
154 | + */ |
|
141 | 155 | private function stripComments($str, $open, $close) { |
142 | 156 | $pos = 0; |
143 | 157 | while (($pos = strpos($str, $open, $pos)) !== false) { |