Passed
Push — master ( 690118...c1fe04 )
by
unknown
03:06
created
src/Charcoal/Object/RoutableTrait.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
         if ($this instanceof ViewableInterface && $this->view() !== null) {
284 284
             $route = $this->view()->render($pattern, $this->viewController());
285 285
         } else {
286
-            $route = preg_replace_callback('~\{\{\s*(.*?)\s*\}\}~i', [ $this, 'parseRouteToken' ], $pattern);
286
+            $route = preg_replace_callback('~\{\{\s*(.*?)\s*\}\}~i', [$this, 'parseRouteToken'], $pattern);
287 287
         }
288 288
 
289 289
         return $this->slugify($route);
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
         }
307 307
 
308 308
         $token = trim($token);
309
-        $method = [ $this, $token ];
309
+        $method = [$this, $token];
310 310
 
311 311
         if (is_callable($method)) {
312 312
             $value = call_user_func($method);
@@ -423,7 +423,7 @@  discard block
 block discarded – undo
423 423
                     'route_options'       => $newData['route_options'],
424 424
                     'route_options_ident' => $newData['route_options_ident'],
425 425
                 ]);
426
-                $oldRoute->update([ 'route_template', 'route_options' ]);
426
+                $oldRoute->update(['route_template', 'route_options']);
427 427
 
428 428
                 continue;
429 429
             }
Please login to merge, or discard this patch.