@@ -991,7 +991,7 @@ discard block |
||
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 |
||
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 |
||
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"); |
@@ -62,7 +62,7 @@ |
||
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'; |