Passed
Branch master (cfdd1e)
by Marcus
03:59
created
src/LesserPhp/Compiler.php 1 patch
Doc Comments   +28 added lines patch added patch discarded remove patch
@@ -130,6 +130,10 @@  discard block
 block discarded – undo
130 130
     }
131 131
 
132 132
     // attempts to find the path of an import url, returns null for css files
133
+
134
+    /**
135
+     * @param string $url
136
+     */
133 137
     protected function findImport($url)
134 138
     {
135 139
         foreach ((array)$this->importDir as $dir) {
@@ -142,6 +146,9 @@  discard block
 block discarded – undo
142 146
         return null;
143 147
     }
144 148
 
149
+    /**
150
+     * @param string $name
151
+     */
145 152
     protected function fileExists($name)
146 153
     {
147 154
         return is_file($name);
@@ -345,6 +352,9 @@  discard block
 block discarded – undo
345 352
         return $scope;
346 353
     }
347 354
 
355
+    /**
356
+     * @param string[] $selectors
357
+     */
348 358
     protected function compileNestedBlock($block, $selectors)
349 359
     {
350 360
         $this->pushEnv($this->env, $block);
@@ -365,6 +375,9 @@  discard block
 block discarded – undo
365 375
         $this->popEnv();
366 376
     }
367 377
 
378
+    /**
379
+     * @param \stdClass $out
380
+     */
368 381
     protected function compileProps($block, $out)
369 382
     {
370 383
         foreach ($this->sortProps($block->props) as $prop) {
@@ -1102,6 +1115,11 @@  discard block
 block discarded – undo
1102 1115
         return $out;
1103 1116
     }
1104 1117
 
1118
+    /**
1119
+     * @param double $comp
1120
+     * @param double $temp1
1121
+     * @param double $temp2
1122
+     */
1105 1123
     protected function toRGB_helper($comp, $temp1, $temp2)
1106 1124
     {
1107 1125
         if ($comp < 0) {
@@ -1405,6 +1423,9 @@  discard block
 block discarded – undo
1405 1423
         return $value;
1406 1424
     }
1407 1425
 
1426
+    /**
1427
+     * @param boolean $a
1428
+     */
1408 1429
     public function toBool($a)
1409 1430
     {
1410 1431
         if ($a) {
@@ -1621,6 +1642,10 @@  discard block
 block discarded – undo
1621 1642
     }
1622 1643
 
1623 1644
     // the state of execution
1645
+
1646
+    /**
1647
+     * @param NodeEnv $parent
1648
+     */
1624 1649
     protected function pushEnv($parent, $block = null)
1625 1650
     {
1626 1651
         $e = new \LesserPhp\NodeEnv();
@@ -1932,6 +1957,9 @@  discard block
 block discarded – undo
1932 1957
         return $out;
1933 1958
     }
1934 1959
 
1960
+    /**
1961
+     * @param string|null $name
1962
+     */
1935 1963
     protected function makeParser($name)
1936 1964
     {
1937 1965
         $parser = new \LesserPhp\Parser($this, $name);
Please login to merge, or discard this patch.
src/LesserPhp/Library/Functions.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -726,6 +726,9 @@
 block discarded – undo
726 726
         return null;
727 727
     }
728 728
 
729
+    /**
730
+     * @param string $name
731
+     */
729 732
     public function fileExists($name)
730 733
     {
731 734
         return is_file($name);
Please login to merge, or discard this patch.
src/LesserPhp/Parser.php 1 patch
Doc Comments   +23 added lines patch added patch discarded remove patch
@@ -114,6 +114,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.