@@ -65,7 +65,7 @@ discard block |
||
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 |
||
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 |
||
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 | } |