Passed
Push — master ( 2b821f...14f6f1 )
by Marcus
02:54
created
src/LesserPhp/Color/Converter.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -139,8 +139,8 @@
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
src/LesserPhp/Compiler.php 1 patch
Doc Comments   +20 added lines, -1 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
      */
@@ -197,6 +197,9 @@  discard block
 block discarded – undo
197 197
         return null;
198 198
     }
199 199
 
200
+    /**
201
+     * @param string $name
202
+     */
200 203
     protected function fileExists($name)
201 204
     {
202 205
         return is_file($name);
@@ -398,6 +401,9 @@  discard block
 block discarded – undo
398 401
         return $scope;
399 402
     }
400 403
 
404
+    /**
405
+     * @param string[] $selectors
406
+     */
401 407
     protected function compileNestedBlock($block, $selectors)
402 408
     {
403 409
         $this->pushEnv($this->env, $block);
@@ -418,6 +424,9 @@  discard block
 block discarded – undo
418 424
         $this->popEnv();
419 425
     }
420 426
 
427
+    /**
428
+     * @param \stdClass $out
429
+     */
421 430
     protected function compileProps($block, $out)
422 431
     {
423 432
         foreach ($this->sortProps($block->props) as $prop) {
@@ -1349,6 +1358,9 @@  discard block
 block discarded – undo
1349 1358
         return $value;
1350 1359
     }
1351 1360
 
1361
+    /**
1362
+     * @param boolean $a
1363
+     */
1352 1364
     public function toBool($a)
1353 1365
     {
1354 1366
         if ($a) {
@@ -1565,6 +1577,10 @@  discard block
 block discarded – undo
1565 1577
     }
1566 1578
 
1567 1579
     // the state of execution
1580
+
1581
+    /**
1582
+     * @param NodeEnv $parent
1583
+     */
1568 1584
     protected function pushEnv($parent, $block = null)
1569 1585
     {
1570 1586
         $e = new \LesserPhp\NodeEnv();
@@ -1875,6 +1891,9 @@  discard block
 block discarded – undo
1875 1891
         return $out;
1876 1892
     }
1877 1893
 
1894
+    /**
1895
+     * @param string|null $name
1896
+     */
1878 1897
     protected function makeParser($name)
1879 1898
     {
1880 1899
         $parser = new \LesserPhp\Parser($this, $name);
Please login to merge, or discard this patch.
src/LesserPhp/Parser.php 1 patch
Doc Comments   +26 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;
@@ -483,6 +486,7 @@  discard block
 block discarded – undo
483 486
 
484 487
     /**
485 488
      * recursively parse infix equation with $lhs at precedence $minP
489
+     * @param integer $minP
486 490
      */
487 491
     protected function expHelper($lhs, $minP)
488 492
     {
@@ -775,6 +779,11 @@  discard block
 block discarded – undo
775 779
     }
776 780
 
777 781
     // an unbounded string stopped by $end
782
+
783
+    /**
784
+     * @param string $end
785
+     * @param string[] $rejectStrs
786
+     */
778 787
     protected function openString($end, &$out, $nestingOpen = null, $rejectStrs = null)
779 788
     {
780 789
         $oldWhite = $this->eatWhiteDefault;
@@ -1429,6 +1438,9 @@  discard block
 block discarded – undo
1429 1438
 
1430 1439
     /* raw parsing functions */
1431 1440
 
1441
+    /**
1442
+     * @param boolean $eatWhitespace
1443
+     */
1432 1444
     protected function literal($what, $eatWhitespace = null)
1433 1445
     {
1434 1446
         if ($eatWhitespace === null) {
@@ -1456,6 +1468,9 @@  discard block
 block discarded – undo
1456 1468
         return $this->match(self::$literalCache[$what], $m, $eatWhitespace);
1457 1469
     }
1458 1470
 
1471
+    /**
1472
+     * @param string $parseItem
1473
+     */
1459 1474
     protected function genericList(&$out, $parseItem, $delim = "", $flatten = true)
1460 1475
     {
1461 1476
         $s = $this->seek();
@@ -1549,6 +1564,10 @@  discard block
 block discarded – undo
1549 1564
     }
1550 1565
 
1551 1566
     // match something without consuming it
1567
+
1568
+    /**
1569
+     * @param string $regex
1570
+     */
1552 1571
     protected function peek($regex, &$out = null, $from = null)
1553 1572
     {
1554 1573
         if ($from === null) {
@@ -1572,6 +1591,9 @@  discard block
 block discarded – undo
1572 1591
 
1573 1592
     /* misc functions */
1574 1593
 
1594
+    /**
1595
+     * @param integer $count
1596
+     */
1575 1597
     public function throwError($msg = "parse error", $count = null)
1576 1598
     {
1577 1599
         $count = $count === null ? $this->count : $count;
@@ -1621,6 +1643,10 @@  discard block
 block discarded – undo
1621 1643
     }
1622 1644
 
1623 1645
     // push a block that doesn't multiply tags
1646
+
1647
+    /**
1648
+     * @param string $type
1649
+     */
1624 1650
     protected function pushSpecialBlock($type)
1625 1651
     {
1626 1652
         return $this->pushBlock(null, $type);
Please login to merge, or discard this patch.