Completed
Pull Request — master (#4413)
by
unknown
02:31
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.
src/Auth/Database/Menu.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
      */
93 93
     protected static function boot()
94 94
     {
95
-        static::deleting(function ($model) {
95
+        static::deleting(function($model) {
96 96
             $model->roles()->detach();
97 97
         });
98 98
     }
Please login to merge, or discard this patch.