Completed
Push — master ( a9d264...8b7f62 )
by Tom
02:39
created
src/Parser/Sheet.php 1 patch
Doc Comments   +13 added lines patch added patch discarded remove patch
@@ -42,6 +42,9 @@  discard block
 block discarded – undo
42 42
 		return $this->cache->write($this->file, $rules, $this->import);
43 43
 	}
44 44
 
45
+	/**
46
+	 * @param integer $indexStart
47
+	 */
45 48
 	private function parseTokens($indexStart) {
46 49
 		$this->rules = [];
47 50
 		foreach (new TokenFilterIterator($this->tss, [Tokenizer::WHITESPACE]) as $token) {
@@ -66,6 +69,9 @@  discard block
 block discarded – undo
66 69
 		if (empty($rules) && count($this->tss) > 0) throw new \Exception('No TSS rules parsed');
67 70
 	}
68 71
 
72
+	/**
73
+	 * @param integer $index
74
+	 */
69 75
 	private function CssToRules($selector, $index, $properties, $line) {
70 76
 		$parts = $selector->trim()->splitOnToken(Tokenizer::ARG);
71 77
 		$rules = [];
@@ -89,6 +95,9 @@  discard block
 block discarded – undo
89 95
 		return $rules;
90 96
 	}
91 97
 
98
+	/**
99
+	 * @param integer $indexStart
100
+	 */
92 101
 	private function processingInstructions($token, $indexStart) {
93 102
 		if ($token['type'] !== Tokenizer::AT_SIGN) return false;
94 103
 		$tokens = $this->tss->from(Tokenizer::AT_SIGN, false)->to(Tokenizer::SEMI_COLON, false);
@@ -119,6 +128,10 @@  discard block
 block discarded – undo
119 128
 		return ($a->depth < $b->depth) ? -1 : 1;
120 129
 	}
121 130
 
131
+	/**
132
+	 * @param string $open
133
+	 * @param string $close
134
+	 */
122 135
 	private function stripComments($str, $open, $close) {
123 136
 		$pos = 0;
124 137
 		while (($pos = strpos($str, $open, $pos)) !== false) {
Please login to merge, or discard this patch.