@@ -139,8 +139,8 @@ |
||
139 | 139 | |
140 | 140 | /** |
141 | 141 | * @param double $v |
142 | - * @param double $max |
|
143 | - * @param double $min |
|
142 | + * @param integer $max |
|
143 | + * @param integer $min |
|
144 | 144 | * |
145 | 145 | * @return mixed |
146 | 146 | */ |
@@ -132,6 +132,10 @@ discard block |
||
132 | 132 | } |
133 | 133 | |
134 | 134 | // attempts to find the path of an import url, returns null for css files |
135 | + |
|
136 | + /** |
|
137 | + * @param string $url |
|
138 | + */ |
|
135 | 139 | protected function findImport($url) |
136 | 140 | { |
137 | 141 | foreach ((array)$this->importDir as $dir) { |
@@ -144,6 +148,9 @@ discard block |
||
144 | 148 | return null; |
145 | 149 | } |
146 | 150 | |
151 | + /** |
|
152 | + * @param string $name |
|
153 | + */ |
|
147 | 154 | protected function fileExists($name) |
148 | 155 | { |
149 | 156 | return is_file($name); |
@@ -347,6 +354,9 @@ discard block |
||
347 | 354 | return $scope; |
348 | 355 | } |
349 | 356 | |
357 | + /** |
|
358 | + * @param string[] $selectors |
|
359 | + */ |
|
350 | 360 | protected function compileNestedBlock($block, $selectors) |
351 | 361 | { |
352 | 362 | $this->pushEnv($this->env, $block); |
@@ -367,6 +377,9 @@ discard block |
||
367 | 377 | $this->popEnv(); |
368 | 378 | } |
369 | 379 | |
380 | + /** |
|
381 | + * @param \stdClass $out |
|
382 | + */ |
|
370 | 383 | protected function compileProps($block, $out) |
371 | 384 | { |
372 | 385 | foreach ($this->sortProps($block->props) as $prop) { |
@@ -1298,6 +1311,9 @@ discard block |
||
1298 | 1311 | return $value; |
1299 | 1312 | } |
1300 | 1313 | |
1314 | + /** |
|
1315 | + * @param boolean $a |
|
1316 | + */ |
|
1301 | 1317 | public function toBool($a) |
1302 | 1318 | { |
1303 | 1319 | if ($a) { |
@@ -1514,6 +1530,10 @@ discard block |
||
1514 | 1530 | } |
1515 | 1531 | |
1516 | 1532 | // the state of execution |
1533 | + |
|
1534 | + /** |
|
1535 | + * @param NodeEnv $parent |
|
1536 | + */ |
|
1517 | 1537 | protected function pushEnv($parent, $block = null) |
1518 | 1538 | { |
1519 | 1539 | $e = new \LesserPhp\NodeEnv(); |
@@ -1825,6 +1845,9 @@ discard block |
||
1825 | 1845 | return $out; |
1826 | 1846 | } |
1827 | 1847 | |
1848 | + /** |
|
1849 | + * @param string|null $name |
|
1850 | + */ |
|
1828 | 1851 | protected function makeParser($name) |
1829 | 1852 | { |
1830 | 1853 | $parser = new \LesserPhp\Parser($this, $name); |