Completed
Pull Request — master (#4965)
by
unknown
02:25
created
src/Auth/Database/Permission.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 
70 70
         $method = $this->http_method;
71 71
 
72
-        $matches = array_map(function ($path) use ($method) {
72
+        $matches = array_map(function($path) use ($method) {
73 73
             $path = trim(config('admin.route.prefix'), '/').$path;
74 74
 
75 75
             if (Str::contains($path, ':')) {
@@ -115,16 +115,16 @@  discard block
 block discarded – undo
115 115
         if ($match['path'] == '/') {
116 116
             $path = '/';
117 117
         } else {
118
-            $match_pattern = preg_replace('/(?<!\\\\)\//i','\/', $match['path']);
118
+            $match_pattern = preg_replace('/(?<!\\\\)\//i', '\/', $match['path']);
119 119
             $path = trim($match['path'], '/');
120 120
         }
121 121
 
122 122
 
123
-        if (!$request->is($path) && (!is_null($match_pattern) && !preg_match("/".$match_pattern."/", $request->fullUrl())) ) {
123
+        if (!$request->is($path) && (!is_null($match_pattern) && !preg_match("/".$match_pattern."/", $request->fullUrl()))) {
124 124
             return false;
125 125
         }
126 126
 
127
-        $method = collect($match['method'])->filter()->map(function ($method) {
127
+        $method = collect($match['method'])->filter()->map(function($method) {
128 128
             return strtoupper($method);
129 129
         });
130 130
 
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
     {
165 165
         parent::boot();
166 166
 
167
-        static::deleting(function ($model) {
167
+        static::deleting(function($model) {
168 168
             $model->roles()->detach();
169 169
         });
170 170
     }
Please login to merge, or discard this patch.