Completed
Pull Request — master (#3303)
by
unknown
03:03 queued 46s
created
src/Auth/Database/Permission.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 
67 67
         $method = $this->http_method;
68 68
 
69
-        $matches = array_map(function ($path) use ($method) {
69
+        $matches = array_map(function($path) use ($method) {
70 70
             $path = trim(config('admin.route.prefix'), '/').$path;
71 71
 
72 72
             if (Str::contains($path, ':')) {
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
     protected function matchRequest(array $match, Request $request) : bool
110 110
     {
111 111
         // if not "/", trim
112
-        if(!$request->is('/')){
112
+        if (!$request->is('/')) {
113 113
             $match['path'] = trim($match['path'], '/');
114 114
         }
115 115
 
@@ -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.