Passed
Push — master ( 630b88...fd2bc2 )
by Marcus
39s
created
src/LesserPhp/Compiler.php 1 patch
Spacing   +8 added lines, -9 removed lines patch added patch discarded remove patch
@@ -882,7 +882,7 @@  discard block
 block discarded – undo
882 882
 
883 883
                 $orderedArgs = [];
884 884
                 $keywordArgs = [];
885
-                foreach ((array)$args as $arg) {
885
+                foreach ((array) $args as $arg) {
886 886
                     switch ($arg[0]) {
887 887
                         case "arg":
888 888
                             if (!isset($arg[2])) {
@@ -979,8 +979,7 @@  discard block
 block discarded – undo
979 979
                 $result = $this->tryImport($importPath, $block, $out);
980 980
 
981 981
                 $this->env->addImports($importId, $result === false ?
982
-                    [false, "@import " . $this->compileValue($importPath) . ";"] :
983
-                    $result);
982
+                    [false, "@import " . $this->compileValue($importPath) . ";"] : $result);
984 983
 
985 984
                 break;
986 985
             case "import_mixin":
@@ -1102,7 +1101,7 @@  discard block
 block discarded – undo
1102 1101
         }
1103 1102
         list($color, $delta) = $args[2];
1104 1103
         $color = $this->assertions->assertColor($color);
1105
-        $delta = (float)$delta[1];
1104
+        $delta = (float) $delta[1];
1106 1105
 
1107 1106
         return [$color, $delta];
1108 1107
     }
@@ -1129,7 +1128,7 @@  discard block
 block discarded – undo
1129 1128
             $i = 0;
1130 1129
             foreach ($rawComponents as $c) {
1131 1130
                 $val = $this->reduce($c);
1132
-                $val = isset($val[1]) ? (float)$val[1] : 0;
1131
+                $val = isset($val[1]) ? (float) $val[1] : 0;
1133 1132
 
1134 1133
                 if ($i === 0) {
1135 1134
                     $clamp = 360;
@@ -1158,13 +1157,13 @@  discard block
 block discarded – undo
1158 1157
                     if ($c[0] === "number" && $c[2] === "%") {
1159 1158
                         $components[] = 255 * ($c[1] / 100);
1160 1159
                     } else {
1161
-                        $components[] = (float)$c[1];
1160
+                        $components[] = (float) $c[1];
1162 1161
                     }
1163 1162
                 } elseif ($i === 4) {
1164 1163
                     if ($c[0] === "number" && $c[2] === "%") {
1165 1164
                         $components[] = 1.0 * ($c[1] / 100);
1166 1165
                     } else {
1167
-                        $components[] = (float)$c[1];
1166
+                        $components[] = (float) $c[1];
1168 1167
                     }
1169 1168
                 } else {
1170 1169
                     break;
@@ -1213,7 +1212,7 @@  discard block
 block discarded – undo
1213 1212
                     $key = $this->vPrefix . $this->compileValue($this->functions->e($key));
1214 1213
                 }
1215 1214
 
1216
-                $seen =& $this->env->seenNames;
1215
+                $seen = & $this->env->seenNames;
1217 1216
 
1218 1217
                 if (!empty($seen[$key])) {
1219 1218
                     $this->throwError("infinite loop detected: $key");
@@ -1660,7 +1659,7 @@  discard block
 block discarded – undo
1660 1659
                 $name = '@' . $name;
1661 1660
             }
1662 1661
             $parser->count = 0;
1663
-            $parser->buffer = (string)$strValue;
1662
+            $parser->buffer = (string) $strValue;
1664 1663
             if (!$parser->propertyValue($value)) {
1665 1664
                 throw new GeneralException("failed to parse passed in variable $name: $strValue");
1666 1665
             }
Please login to merge, or discard this patch.