Completed
Push — master ( 6f27db...11c459 )
by Chauncey
15:37
created
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.
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.