Completed
Push — master ( 14f6f1...9a86cf )
by Marcus
02:46
created
src/LesserPhp/Color/Converter.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@
 block discarded – undo
139 139
      * @param int $max
140 140
      * @param int $min
141 141
      *
142
-     * @return mixed
142
+     * @return integer
143 143
      */
144 144
     public function clamp($v, $max = 1, $min = 0)
145 145
     {
Please login to merge, or discard this patch.
src/LesserPhp/Compiler.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
     /**
182 182
      * attempts to find the path of an import url, returns null for css files
183 183
      *
184
-     * @param $url
184
+     * @param string $url
185 185
      *
186 186
      * @return null|string
187 187
      */
@@ -441,7 +441,7 @@  discard block
 block discarded – undo
441 441
 
442 442
     /**
443 443
      * @param $block
444
-     * @param $selectors
444
+     * @param string[] $selectors
445 445
      */
446 446
     protected function compileNestedBlock($block, $selectors)
447 447
     {
@@ -468,7 +468,7 @@  discard block
 block discarded – undo
468 468
 
469 469
     /**
470 470
      * @param $block
471
-     * @param $out
471
+     * @param \stdClass $out
472 472
      */
473 473
     protected function compileProps($block, $out)
474 474
     {
@@ -1487,7 +1487,7 @@  discard block
 block discarded – undo
1487 1487
     }
1488 1488
 
1489 1489
     /**
1490
-     * @param $a
1490
+     * @param boolean $a
1491 1491
      *
1492 1492
      * @return array
1493 1493
      */
@@ -1761,7 +1761,7 @@  discard block
 block discarded – undo
1761 1761
     }
1762 1762
 
1763 1763
     /**
1764
-     * @param      $parent
1764
+     * @param      NodeEnv $parent
1765 1765
      * @param null $block
1766 1766
      *
1767 1767
      * @return \LesserPhp\NodeEnv
@@ -1869,7 +1869,7 @@  discard block
 block discarded – undo
1869 1869
     /**
1870 1870
      * inject array of unparsed strings into environment as variables
1871 1871
      *
1872
-     * @param array $args
1872
+     * @param string[] $args
1873 1873
      *
1874 1874
      * @throws \LesserPhp\Exception\GeneralException
1875 1875
      */
Please login to merge, or discard this patch.
src/LesserPhp/Parser.php 1 patch
Doc Comments   +27 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
      * Parser constructor.
100 100
      *
101 101
      * @param \LesserPhp\Compiler $lessc
102
-     * @param null                $sourceName
102
+     * @param string                $sourceName
103 103
      */
104 104
     public function __construct(Compiler $lessc, $sourceName = null)
105 105
     {
@@ -123,6 +123,9 @@  discard block
 block discarded – undo
123 123
         }
124 124
     }
125 125
 
126
+    /**
127
+     * @param string $buffer
128
+     */
126 129
     public function parse($buffer)
127 130
     {
128 131
         $this->count = 0;
@@ -487,6 +490,7 @@  discard block
 block discarded – undo
487 490
 
488 491
     /**
489 492
      * recursively parse infix equation with $lhs at precedence $minP
493
+     * @param integer $minP
490 494
      */
491 495
     protected function expHelper($lhs, $minP)
492 496
     {
@@ -779,6 +783,11 @@  discard block
 block discarded – undo
779 783
     }
780 784
 
781 785
     // an unbounded string stopped by $end
786
+
787
+    /**
788
+     * @param string $end
789
+     * @param string[] $rejectStrs
790
+     */
782 791
     protected function openString($end, &$out, $nestingOpen = null, $rejectStrs = null)
783 792
     {
784 793
         $oldWhite = $this->eatWhiteDefault;
@@ -1433,6 +1442,9 @@  discard block
 block discarded – undo
1433 1442
 
1434 1443
     /* raw parsing functions */
1435 1444
 
1445
+    /**
1446
+     * @param boolean $eatWhitespace
1447
+     */
1436 1448
     protected function literal($what, $eatWhitespace = null)
1437 1449
     {
1438 1450
         if ($eatWhitespace === null) {
@@ -1460,6 +1472,9 @@  discard block
 block discarded – undo
1460 1472
         return $this->match(self::$literalCache[$what], $m, $eatWhitespace);
1461 1473
     }
1462 1474
 
1475
+    /**
1476
+     * @param string $parseItem
1477
+     */
1463 1478
     protected function genericList(&$out, $parseItem, $delim = "", $flatten = true)
1464 1479
     {
1465 1480
         $s = $this->seek();
@@ -1553,6 +1568,10 @@  discard block
 block discarded – undo
1553 1568
     }
1554 1569
 
1555 1570
     // match something without consuming it
1571
+
1572
+    /**
1573
+     * @param string $regex
1574
+     */
1556 1575
     protected function peek($regex, &$out = null, $from = null)
1557 1576
     {
1558 1577
         if ($from === null) {
@@ -1576,6 +1595,9 @@  discard block
 block discarded – undo
1576 1595
 
1577 1596
     /* misc functions */
1578 1597
 
1598
+    /**
1599
+     * @param integer $count
1600
+     */
1579 1601
     public function throwError($msg = "parse error", $count = null)
1580 1602
     {
1581 1603
         $count = $count === null ? $this->count : $count;
@@ -1625,6 +1647,10 @@  discard block
 block discarded – undo
1625 1647
     }
1626 1648
 
1627 1649
     // push a block that doesn't multiply tags
1650
+
1651
+    /**
1652
+     * @param string $type
1653
+     */
1628 1654
     protected function pushSpecialBlock($type)
1629 1655
     {
1630 1656
         return $this->pushBlock(null, $type);
Please login to merge, or discard this patch.