Completed
Pull Request — master (#4413)
by
unknown
02:50
created
src/Traits/ModelTree.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
     {
198 198
         static::$branchOrder = array_flip(Arr::flatten($order));
199 199
 
200
-        static::$branchOrder = array_map(function ($item) {
200
+        static::$branchOrder = array_map(function($item) {
201 201
             return ++$item;
202 202
         }, static::$branchOrder);
203 203
     }
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
      */
297 297
     protected static function bootModelTree()
298 298
     {
299
-        static::saving(function (Model $branch) {
299
+        static::saving(function(Model $branch) {
300 300
             $parentColumn = $branch->getParentColumn();
301 301
 
302 302
             if (Request::has($parentColumn) && Request::input($parentColumn) == $branch->getKey()) {
Please login to merge, or discard this patch.