@@ -114,6 +114,9 @@ discard block |
||
114 | 114 | } |
115 | 115 | } |
116 | 116 | |
117 | + /** |
|
118 | + * @param string $buffer |
|
119 | + */ |
|
117 | 120 | public function parse($buffer) |
118 | 121 | { |
119 | 122 | $this->count = 0; |
@@ -478,6 +481,7 @@ discard block |
||
478 | 481 | |
479 | 482 | /** |
480 | 483 | * recursively parse infix equation with $lhs at precedence $minP |
484 | + * @param integer $minP |
|
481 | 485 | */ |
482 | 486 | protected function expHelper($lhs, $minP) |
483 | 487 | { |
@@ -770,6 +774,11 @@ discard block |
||
770 | 774 | } |
771 | 775 | |
772 | 776 | // an unbounded string stopped by $end |
777 | + |
|
778 | + /** |
|
779 | + * @param string $end |
|
780 | + * @param string[] $rejectStrs |
|
781 | + */ |
|
773 | 782 | protected function openString($end, &$out, $nestingOpen = null, $rejectStrs = null) |
774 | 783 | { |
775 | 784 | $oldWhite = $this->eatWhiteDefault; |
@@ -1424,6 +1433,9 @@ discard block |
||
1424 | 1433 | |
1425 | 1434 | /* raw parsing functions */ |
1426 | 1435 | |
1436 | + /** |
|
1437 | + * @param boolean $eatWhitespace |
|
1438 | + */ |
|
1427 | 1439 | protected function literal($what, $eatWhitespace = null) |
1428 | 1440 | { |
1429 | 1441 | if ($eatWhitespace === null) { |
@@ -1451,6 +1463,9 @@ discard block |
||
1451 | 1463 | return $this->match(self::$literalCache[$what], $m, $eatWhitespace); |
1452 | 1464 | } |
1453 | 1465 | |
1466 | + /** |
|
1467 | + * @param string $parseItem |
|
1468 | + */ |
|
1454 | 1469 | protected function genericList(&$out, $parseItem, $delim = "", $flatten = true) |
1455 | 1470 | { |
1456 | 1471 | $s = $this->seek(); |
@@ -1544,6 +1559,10 @@ discard block |
||
1544 | 1559 | } |
1545 | 1560 | |
1546 | 1561 | // match something without consuming it |
1562 | + |
|
1563 | + /** |
|
1564 | + * @param string $regex |
|
1565 | + */ |
|
1547 | 1566 | protected function peek($regex, &$out = null, $from = null) |
1548 | 1567 | { |
1549 | 1568 | if ($from === null) { |
@@ -1616,6 +1635,10 @@ discard block |
||
1616 | 1635 | } |
1617 | 1636 | |
1618 | 1637 | // push a block that doesn't multiply tags |
1638 | + |
|
1639 | + /** |
|
1640 | + * @param string $type |
|
1641 | + */ |
|
1619 | 1642 | protected function pushSpecialBlock($type) |
1620 | 1643 | { |
1621 | 1644 | return $this->pushBlock(null, $type); |
@@ -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); |