Passed
Pull Request — master (#5)
by
unknown
03:03
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 3 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -443,7 +443,7 @@  discard block
 block discarded – undo
443 443
 
444 444
     /**
445 445
      * @param $block
446
-     * @param $out
446
+     * @param \stdClass $out
447 447
      *
448 448
      * @throws \LesserPhp\Exception\GeneralException
449 449
      */
@@ -1724,7 +1724,7 @@  discard block
 block discarded – undo
1724 1724
     }
1725 1725
 
1726 1726
     /**
1727
-     * @param      $parent
1727
+     * @param      NodeEnv $parent
1728 1728
      * @param null $block
1729 1729
      *
1730 1730
      * @return \LesserPhp\NodeEnv
Please login to merge, or discard this patch.
Spacing   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -991,7 +991,7 @@  discard block
 block discarded – undo
991 991
 
992 992
                 $orderedArgs = [];
993 993
                 $keywordArgs = [];
994
-                foreach ((array)$args as $arg) {
994
+                foreach ((array) $args as $arg) {
995 995
                     switch ($arg[0]) {
996 996
                         case "arg":
997 997
                             if (!isset($arg[2])) {
@@ -1088,8 +1088,7 @@  discard block
 block discarded – undo
1088 1088
                 $result = $this->tryImport($importPath, $block, $out);
1089 1089
 
1090 1090
                 $this->env->addImports($importId, $result === false ?
1091
-                    [false, "@import " . $this->compileValue($importPath) . ";"] :
1092
-                    $result);
1091
+                    [false, "@import " . $this->compileValue($importPath) . ";"] : $result);
1093 1092
 
1094 1093
                 break;
1095 1094
             case "import_mixin":
@@ -1322,7 +1321,7 @@  discard block
 block discarded – undo
1322 1321
                     $key = $this->vPrefix . $this->compileValue($this->functions->e($key));
1323 1322
                 }
1324 1323
 
1325
-                $seen =& $this->env->seenNames;
1324
+                $seen = & $this->env->seenNames;
1326 1325
 
1327 1326
                 if (!empty($seen[$key])) {
1328 1327
                     $this->throwError("infinite loop detected: $key");
Please login to merge, or discard this patch.
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -1111,23 +1111,23 @@  discard block
 block discarded – undo
1111 1111
     }
1112 1112
 
1113 1113
 
1114
-	/**
1115
-	 * Compiles a primitive value into a CSS property value.
1116
-	 *
1117
-	 * Values in lessphp are typed by being wrapped in arrays, their format is
1118
-	 * typically:
1119
-	 *
1120
-	 *     array(type, contents [, additional_contents]*)
1121
-	 *
1122
-	 * The input is expected to be reduced. This function will not work on
1123
-	 * things like expressions and variables.
1124
-	 *
1125
-	 * @param array $value
1126
-	 * @param array $options
1127
-	 *
1128
-	 * @return string
1129
-	 * @throws GeneralException
1130
-	 */
1114
+    /**
1115
+     * Compiles a primitive value into a CSS property value.
1116
+     *
1117
+     * Values in lessphp are typed by being wrapped in arrays, their format is
1118
+     * typically:
1119
+     *
1120
+     *     array(type, contents [, additional_contents]*)
1121
+     *
1122
+     * The input is expected to be reduced. This function will not work on
1123
+     * things like expressions and variables.
1124
+     *
1125
+     * @param array $value
1126
+     * @param array $options
1127
+     *
1128
+     * @return string
1129
+     * @throws GeneralException
1130
+     */
1131 1131
     public function compileValue(array $value, array $options = [])
1132 1132
     {
1133 1133
         try {
@@ -2055,9 +2055,9 @@  discard block
 block discarded – undo
2055 2055
         $this->formatterName = $name;
2056 2056
     }
2057 2057
 
2058
-	public function setFormatterClass($formatter)
2059
-	{
2060
-		$this->formatter = $formatter;
2058
+    public function setFormatterClass($formatter)
2059
+    {
2060
+        $this->formatter = $formatter;
2061 2061
     }
2062 2062
 
2063 2063
     /**
Please login to merge, or discard this patch.
src/LesserPhp/Parser.php 1 patch
Doc Comments   +10 added lines, -10 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,7 +123,7 @@  discard block
 block discarded – undo
123 123
     }
124 124
 
125 125
     /**
126
-     * @param $buffer
126
+     * @param string $buffer
127 127
      *
128 128
      * @return mixed
129 129
      * @throws \LesserPhp\Exception\GeneralException
@@ -476,7 +476,7 @@  discard block
 block discarded – undo
476 476
      * recursively parse infix equation with $lhs at precedence $minP
477 477
      *
478 478
      * @param $lhs
479
-     * @param $minP
479
+     * @param integer $minP
480 480
      *
481 481
      * @return array
482 482
      */
@@ -810,10 +810,10 @@  discard block
 block discarded – undo
810 810
     /**
811 811
      * an unbounded string stopped by $end
812 812
      *
813
-     * @param      $end
813
+     * @param      string $end
814 814
      * @param      $out
815 815
      * @param null $nestingOpen
816
-     * @param null $rejectStrs
816
+     * @param string[] $rejectStrs
817 817
      *
818 818
      * @return bool
819 819
      */
@@ -1648,7 +1648,7 @@  discard block
 block discarded – undo
1648 1648
      * @param bool $until
1649 1649
      * @param bool $allowNewline
1650 1650
      *
1651
-     * @return bool
1651
+     * @return null|boolean
1652 1652
      */
1653 1653
     protected function to($what, &$out, $until = false, $allowNewline = false)
1654 1654
     {
@@ -1821,7 +1821,7 @@  discard block
 block discarded – undo
1821 1821
     /**
1822 1822
      * push a block that doesn't multiply tags
1823 1823
      *
1824
-     * @param $type
1824
+     * @param string $type
1825 1825
      *
1826 1826
      * @return \stdClass
1827 1827
      */
@@ -1834,7 +1834,7 @@  discard block
 block discarded – undo
1834 1834
      * append a property to the current block
1835 1835
      *
1836 1836
      * @param      $prop
1837
-     * @param  $pos
1837
+     * @param  integer $pos
1838 1838
      */
1839 1839
     protected function append($prop, $pos = null)
1840 1840
     {
@@ -1847,7 +1847,7 @@  discard block
 block discarded – undo
1847 1847
     /**
1848 1848
      * pop something off the stack
1849 1849
      *
1850
-     * @return mixed
1850
+     * @return null|\stdClass
1851 1851
      */
1852 1852
     protected function pop()
1853 1853
     {
@@ -1945,7 +1945,7 @@  discard block
 block discarded – undo
1945 1945
     }
1946 1946
 
1947 1947
     /**
1948
-     * @param $s
1948
+     * @param integer $s
1949 1949
      *
1950 1950
      * @return bool
1951 1951
      */
Please login to merge, or discard this patch.
src/LesserPhp/Compiler/Value/AbstractValue.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
     public static function factory(Compiler $compiler, Coerce $coerce, array $options, array $value)
63 63
     {
64 64
         $nameParts      = explode('_', $value[0]);
65
-        $camelCase      = array_reduce($nameParts, function ($carry, $item) {
65
+        $camelCase      = array_reduce($nameParts, function($carry, $item) {
66 66
             return $carry . ucfirst($item);
67 67
         }, '');
68 68
         $valueClassName = 'LesserPhp\Compiler\Value\\' . $camelCase . 'Value';
Please login to merge, or discard this patch.