Passed
Branch master (f0029a)
by Todd
03:38
created
Category
src/ExpressionLanguage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     public function __construct() {
15 15
         parent::__construct();
16 16
 
17
-        $this->registerNodeFunction(GetAttrNode::class, function (\Symfony\Component\ExpressionLanguage\Compiler $compiler, GetAttrNode $node) {
17
+        $this->registerNodeFunction(GetAttrNode::class, function(\Symfony\Component\ExpressionLanguage\Compiler $compiler, GetAttrNode $node) {
18 18
                 switch ($node->attributes['type']) {
19 19
                     case GetAttrNode::METHOD_CALL:
20 20
                         $compiler
Please login to merge, or discard this patch.
src/CompilerBuffer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
             $this->buffers[$component] = $buffer = new ComponentBuffer($this->defaults);
63 63
         }
64 64
 
65
-        $this->current =& $this->buffers[$component];
65
+        $this->current = & $this->buffers[$component];
66 66
 
67 67
         return $previous;
68 68
     }
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
     }
114 114
 
115 115
     private function flushJoin() {
116
-        return implode("\n\n", array_map(function ($buffer) {
116
+        return implode("\n\n", array_map(function($buffer) {
117 117
             /* @var ComponentBuffer $buffer */
118 118
             return $buffer->flush();
119 119
         }, $this->buffers));
Please login to merge, or discard this patch.
src/Compiler.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -247,11 +247,11 @@  discard block
 block discarded – undo
247 247
 
248 248
     private function getFunctionEvaluator($function) {
249 249
         if ($function === 'empty') {
250
-            return function ($expr) {
250
+            return function($expr) {
251 251
                 return empty($expr);
252 252
             };
253 253
         } elseif ($function === 'isset') {
254
-            return function ($expr) {
254
+            return function($expr) {
255 255
                 return isset($expr);
256 256
             };
257 257
         }
@@ -261,21 +261,21 @@  discard block
 block discarded – undo
261 261
 
262 262
     private function getFunctionCompiler($name, $function) {
263 263
         $var = var_export(strtolower($name), true);
264
-        $fn = function ($expr) use ($var) {
264
+        $fn = function($expr) use ($var) {
265 265
             return "\$this->call($var, $expr)";
266 266
         };
267 267
 
268 268
         if (is_string($function)) {
269
-            $fn = function ($expr) use ($function) {
269
+            $fn = function($expr) use ($function) {
270 270
                 return "$function($expr)";
271 271
             };
272 272
         } elseif (is_array($function)) {
273 273
             if (is_string($function[0])) {
274
-                $fn = function ($expr) use ($function) {
274
+                $fn = function($expr) use ($function) {
275 275
                     return "$function[0]::$function[1]($expr)";
276 276
                 };
277 277
             } elseif ($function[0] instanceof Ebi) {
278
-                $fn = function ($expr) use ($function) {
278
+                $fn = function($expr) use ($function) {
279 279
                     return "\$this->$function[1]($expr)";
280 280
                 };
281 281
             }
@@ -466,7 +466,7 @@  discard block
 block discarded – undo
466 466
     protected function expr($expr, CompilerBuffer $output, DOMAttr $attr = null) {
467 467
         $names = $output->getScopeVariables();
468 468
 
469
-        $compiled = $this->expressions->compile($expr, function ($name) use ($names) {
469
+        $compiled = $this->expressions->compile($expr, function($name) use ($names) {
470 470
             if (isset($names[$name])) {
471 471
                 return $names[$name];
472 472
             } elseif ($name[0] === '@') {
@@ -536,7 +536,7 @@  discard block
 block discarded – undo
536 536
             }
537 537
         }
538 538
 
539
-        uksort($special, function ($a, $b) {
539
+        uksort($special, function($a, $b) {
540 540
             return strnatcmp(static::$special[$a], static::$special[$b]);
541 541
         });
542 542
 
Please login to merge, or discard this patch.
src/Ebi.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -352,7 +352,7 @@
 block discarded – undo
352 352
             }
353 353
             return implode(' ', $classes);
354 354
         } else {
355
-            return (string)$expr;
355
+            return (string) $expr;
356 356
         }
357 357
     }
358 358
 
Please login to merge, or discard this patch.
ex.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,14 +1,14 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-return function ($context = [], $hat = null) {
4
-    $fn = function () {
3
+return function($context = [], $hat = null) {
4
+    $fn = function() {
5 5
         return $this;
6 6
     };
7 7
 
8 8
     return $fn();
9 9
 };
10 10
 
11
-function ($context) {
11
+function($context) {
12 12
     if (empty($context['items'])) {
13 13
         echo '<p>There are no items!!!</p>';
14 14
     }
Please login to merge, or discard this patch.