Completed
Push — master ( 125eb4...9a0c87 )
by Alexander
19s
created
YaLinqo/Utils.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -42,8 +42,8 @@  discard block
 block discarded – undo
42 42
     public static function init()
43 43
     {
44 44
         self::$lambdaCache = [
45
-            '$v' => [ 'v,k' => Functions::$value ],
46
-            '$k' => [ 'v,k' => Functions::$key ],
45
+            '$v' => ['v,k' => Functions::$value],
46
+            '$k' => ['v,k' => Functions::$key],
47 47
         ];
48 48
     }
49 49
 
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
                 $code = substr($closure, $posArrow + 3);
151 151
             }
152 152
             else {
153
-                $args = '$' . str_replace(',', '=null,$', $closureArgs) . '=null';
153
+                $args = '$'.str_replace(',', '=null,$', $closureArgs).'=null';
154 154
                 $code = $closure;
155 155
             }
156 156
             $code = trim($code, " \r\n\t");
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
                 $fun = eval("return function($args) { $code };");
161 161
             }
162 162
             catch (ParseError $e) {
163
-                throw new InvalidArgumentException(self::ERROR_CANNOT_PARSE_LAMBDA . " " . $e->getMessage());
163
+                throw new InvalidArgumentException(self::ERROR_CANNOT_PARSE_LAMBDA." ".$e->getMessage());
164 164
             }
165 165
             self::$lambdaCache[$closure][$closureArgs] = $fun;
166 166
             return $fun;
Please login to merge, or discard this patch.