Completed
Pull Request — master (#4724)
by
unknown
03:24
created
src/Auth/Database/Permission.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
     {
66 66
         $method = $this->http_method;
67 67
 
68
-        $matches = array_map(function ($path) use ($method) {
68
+        $matches = array_map(function($path) use ($method) {
69 69
             $path = trim(config('admin.route.prefix'), '/').$path;
70 70
 
71 71
             if (Str::contains($path, ':')) {
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
             return false;
118 118
         }
119 119
 
120
-        $method = collect($match['method'])->filter()->map(function ($method) {
120
+        $method = collect($match['method'])->filter()->map(function($method) {
121 121
             return strtoupper($method);
122 122
         });
123 123
 
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
     {
158 158
         parent::boot();
159 159
 
160
-        static::deleting(function ($model) {
160
+        static::deleting(function($model) {
161 161
             $model->roles()->detach();
162 162
         });
163 163
     }
Please login to merge, or discard this patch.