Completed
Pull Request — master (#3303)
by
unknown
04:16 queued 02:01
created
src/Auth/Database/Permission.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -66,8 +66,8 @@  discard block
 block discarded – undo
66 66
 
67 67
         $method = $this->http_method;
68 68
 
69
-        $matches = array_map(function ($path) use ($method) {
70
-            $path = trim(config('admin.route.prefix'), '/') . $path;
69
+        $matches = array_map(function($path) use ($method) {
70
+            $path = trim(config('admin.route.prefix'), '/').$path;
71 71
 
72 72
             if (Str::contains($path, ':')) {
73 73
                 list($method, $path) = explode(':', $path);
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
             return false;
122 122
         }
123 123
 
124
-        $method = collect($match['method'])->filter()->map(function ($method) {
124
+        $method = collect($match['method'])->filter()->map(function($method) {
125 125
             return strtoupper($method);
126 126
         });
127 127
 
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
     {
162 162
         parent::boot();
163 163
 
164
-        static::deleting(function ($model) {
164
+        static::deleting(function($model) {
165 165
             $model->roles()->detach();
166 166
         });
167 167
     }
Please login to merge, or discard this patch.