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