Completed
Pull Request — master (#3941)
by
unknown
02:23
created
src/Auth/Database/Menu.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
         $connection = config('admin.database.connection') ?: config('database.default');
67 67
         $orderColumn = DB::connection($connection)->getQueryGrammar()->wrap($this->orderColumn);
68 68
 
69
-        $byOrder = 'ROOT ASC,' . $orderColumn;
69
+        $byOrder = 'ROOT ASC,'.$orderColumn;
70 70
 
71 71
         $query = static::query();
72 72
 
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
             $query->with('roles');
75 75
         }
76 76
 
77
-        return $query->selectRaw('*, ' . $orderColumn . ' ROOT')->orderByRaw($byOrder)->get()->toArray();
77
+        return $query->selectRaw('*, '.$orderColumn.' ROOT')->orderByRaw($byOrder)->get()->toArray();
78 78
     }
79 79
 
80 80
     /**
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
     {
97 97
         static::treeBoot();
98 98
 
99
-        static::deleting(function ($model) {
99
+        static::deleting(function($model) {
100 100
             $model->roles()->detach();
101 101
         });
102 102
     }
Please login to merge, or discard this patch.