Passed
Push — master ( 630b88...fd2bc2 )
by Marcus
39s
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/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.
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
      */
@@ -445,7 +445,7 @@  discard block
 block discarded – undo
445 445
 
446 446
     /**
447 447
      * @param $block
448
-     * @param $selectors
448
+     * @param string[] $selectors
449 449
      */
450 450
     protected function compileNestedBlock($block, $selectors)
451 451
     {
@@ -472,7 +472,7 @@  discard block
 block discarded – undo
472 472
 
473 473
     /**
474 474
      * @param $block
475
-     * @param $out
475
+     * @param \stdClass $out
476 476
      *
477 477
      * @throws \LesserPhp\Exception\GeneralException
478 478
      */
@@ -1493,7 +1493,7 @@  discard block
 block discarded – undo
1493 1493
     }
1494 1494
 
1495 1495
     /**
1496
-     * @param $a
1496
+     * @param boolean $a
1497 1497
      *
1498 1498
      * @return array
1499 1499
      */
@@ -1767,7 +1767,7 @@  discard block
 block discarded – undo
1767 1767
     }
1768 1768
 
1769 1769
     /**
1770
-     * @param      $parent
1770
+     * @param      NodeEnv $parent
1771 1771
      * @param null $block
1772 1772
      *
1773 1773
      * @return \LesserPhp\NodeEnv
@@ -1875,7 +1875,7 @@  discard block
 block discarded – undo
1875 1875
     /**
1876 1876
      * inject array of unparsed strings into environment as variables
1877 1877
      *
1878
-     * @param array $args
1878
+     * @param string[] $args
1879 1879
      *
1880 1880
      * @throws \LesserPhp\Exception\GeneralException
1881 1881
      */
Please login to merge, or discard this patch.