Completed
Pull Request — master (#4)
by
unknown
08:57
created
src/Charcoal/Object/RoutableTrait.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
         if ($this instanceof ViewableInterface && $this->view() !== null) {
291 291
             $route = $this->view()->render($pattern, $this->viewController());
292 292
         } else {
293
-            $route = preg_replace_callback('~\{\{\s*(.*?)\s*\}\}~i', [ $this, 'parseRouteToken' ], $pattern);
293
+            $route = preg_replace_callback('~\{\{\s*(.*?)\s*\}\}~i', [$this, 'parseRouteToken'], $pattern);
294 294
         }
295 295
 
296 296
         return $this->slugify($route);
@@ -313,7 +313,7 @@  discard block
 block discarded – undo
313 313
         }
314 314
 
315 315
         $token = trim($token);
316
-        $method = [ $this, $token ];
316
+        $method = [$this, $token];
317 317
 
318 318
         if (is_callable($method)) {
319 319
             $value = call_user_func($method);
@@ -426,7 +426,7 @@  discard block
 block discarded – undo
426 426
                     'route_options'       => $data['route_options'],
427 427
                     'route_options_ident' => $data['route_options_ident']
428 428
                 ]);
429
-                $oldRoute->update([ 'route_template', 'route_options' ]);
429
+                $oldRoute->update(['route_template', 'route_options']);
430 430
                 continue;
431 431
             }
432 432
 
Please login to merge, or discard this patch.
src/Charcoal/Object/HierarchicalCollection.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
             // Repair bad hierarchy.
74 74
             if ($object->hasMaster() && $object->master()->id() === $object->id()) {
75 75
                 $object->setMaster(0);
76
-                $object->update([ 'master' ]);
76
+                $object->update(['master']);
77 77
             }
78 78
 
79 79
             if ($object->hasMaster()) {
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
                 }
113 113
             }
114 114
         } else {
115
-            $start = (( $pageNum - 1 ) * $perPage);
115
+            $start = (($pageNum - 1) * $perPage);
116 116
             $end   = ($start + $perPage);
117 117
 
118 118
             foreach ($this->objects as $object) {
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
                 }
226 226
             }
227 227
         } else {
228
-            $start = (( $pageNum - 1 ) * $perPage);
228
+            $start = (($pageNum - 1) * $perPage);
229 229
             $end   = ($start + $perPage);
230 230
 
231 231
             foreach ($childObjects[$parentObj->id()] as $object) {
Please login to merge, or discard this patch.