Passed
Push — develop ( 0d572e...9e6f62 )
by nguereza
02:17
created
src/Filter/StringFilter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -387,7 +387,7 @@
 block discarded – undo
387 387
 
388 388
         return (string) preg_replace_callback(
389 389
             '/(^|[^\p{L}\'])([\p{Ll}])/u',
390
-            function ($matches) {
390
+            function($matches) {
391 391
                 return $matches[1] . ucfirst($matches[2]);
392 392
             },
393 393
             ucwords($variable)
Please login to merge, or discard this patch.
src/Filter/ArrayFilter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
         } else {
121 121
             $first = reset($variable);
122 122
             if ($first !== false && is_array($first) && array_key_exists($property, $first)) {
123
-                uasort($variable, function ($a, $b) use ($property) {
123
+                uasort($variable, function($a, $b) use ($property) {
124 124
                     return $a[$property] <=> $b[$property];
125 125
                 });
126 126
             }
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
             return $variable;
175 175
         }
176 176
 
177
-        return array_map(function ($element) use ($property) {
177
+        return array_map(function($element) use ($property) {
178 178
             if (is_callable($element)) {
179 179
                 return $element();
180 180
             } elseif (is_array($element) && array_key_exists($property, $element)) {
Please login to merge, or discard this patch.
src/Tag/ForTag.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -196,8 +196,8 @@  discard block
 block discarded – undo
196 196
                 'index0' => $index,
197 197
                 'rindex' => $length - $index,
198 198
                 'rindex0' => $length - $index - 1,
199
-                'first' => ((int)$index === 0),
200
-                'last' => ((int)$index === ($length - 1)),
199
+                'first' => ((int) $index === 0),
200
+                'last' => ((int) $index === ($length - 1)),
201 201
             ]);
202 202
 
203 203
             $result .= $this->renderAll($this->nodeList, $context);
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
             $offset = 0;
247 247
             if (isset($this->attributes['offset'])) {
248 248
                 $forRegister = $context->getRegister('for');
249
-                $offset =  ($this->attributes['offset'] === 'continue')
249
+                $offset = ($this->attributes['offset'] === 'continue')
250 250
                           ? (isset($forRegister[$this->name])
251 251
                                 ? (int) $forRegister[$this->name]
252 252
                                 : 0)
@@ -283,8 +283,8 @@  discard block
 block discarded – undo
283 283
                 'index0' => $index,
284 284
                 'rindex' => $length - $index,
285 285
                 'rindex0' => $length - $index - 1,
286
-                'first' => ((int)$index === 0),
287
-                'last' => ((int)$index === ($length - 1)),
286
+                'first' => ((int) $index === 0),
287
+                'last' => ((int) $index === ($length - 1)),
288 288
             ]);
289 289
 
290 290
             $result .= $this->renderAll($this->nodeList, $context);
Please login to merge, or discard this patch.