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