Completed
Push — master ( 39b3df...5ec81c )
by Richard
03:15
created
src/Parser/Sheet.php 1 patch
Doc Comments   +16 added lines patch added patch discarded remove patch
@@ -43,6 +43,9 @@  discard block
 block discarded – undo
43 43
 		return $this->cache->write($this->file, $rules, $this->import);
44 44
 	}
45 45
 
46
+	/**
47
+	 * @param integer $indexStart
48
+	 */
46 49
 	private function parseTokens($indexStart) {
47 50
 		$this->rules = [];
48 51
 		$line = 1;
@@ -60,6 +63,9 @@  discard block
 block discarded – undo
60 63
 		return $this->rules;
61 64
 	}
62 65
 
66
+	/**
67
+	 * @param integer $line
68
+	 */
63 69
 	private function addRules($token, $indexStart, $line) {
64 70
 		$selector = $this->tss->from($token['type'], true)->to(Tokenizer::OPEN_BRACE);
65 71
 		$this->tss->skip(count($selector));
@@ -73,6 +79,9 @@  discard block
 block discarded – undo
73 79
 		if (empty($rules) && count($this->tss) > 0) throw new \Exception('No TSS rules parsed');
74 80
 	}
75 81
 
82
+	/**
83
+	 * @param integer $index
84
+	 */
76 85
 	private function CssToRules($selector, $index, $properties, $line) {
77 86
 		$parts = $selector->trim()->splitOnToken(Tokenizer::ARG);
78 87
 		$rules = [];
@@ -96,6 +105,9 @@  discard block
 block discarded – undo
96 105
 		return $rules;
97 106
 	}
98 107
 
108
+	/**
109
+	 * @param integer $indexStart
110
+	 */
99 111
 	private function processingInstructions($token, $indexStart) {
100 112
 		if ($token['type'] !== Tokenizer::AT_SIGN) return false;
101 113
 		$tokens = $this->tss->from(Tokenizer::AT_SIGN, false)->to(Tokenizer::SEMI_COLON, false);
@@ -123,6 +135,10 @@  discard block
 block discarded – undo
123 135
 		return ($a->depth < $b->depth) ? -1 : 1;
124 136
 	}
125 137
 
138
+	/**
139
+	 * @param string $open
140
+	 * @param string $close
141
+	 */
126 142
 	private function stripComments($str, $open, $close) {
127 143
 		$pos = 0;
128 144
 		while (($pos = strpos($str, $open, $pos)) !== false) {
Please login to merge, or discard this patch.