@@ -21,7 +21,7 @@ |
||
21 | 21 | if (count($args) > 1) { |
22 | 22 | $type = array_shift($args); |
23 | 23 | |
24 | - if (! method_exists(Permission::class, $type)) { |
|
24 | + if (!method_exists(Permission::class, $type)) { |
|
25 | 25 | throw new \InvalidArgumentException("Invaild permission method [$type]."); |
26 | 26 | } |
27 | 27 |
@@ -65,11 +65,11 @@ discard block |
||
65 | 65 | $attributes = $this->attributes; |
66 | 66 | $attributes['namespace'] = 'Encore\Admin\Controllers'; |
67 | 67 | |
68 | - $this->router->group($attributes, function ($router) { |
|
68 | + $this->router->group($attributes, function($router) { |
|
69 | 69 | |
70 | 70 | $attributes = ['middleware' => 'admin.permission:allow,administrator']; |
71 | 71 | |
72 | - $router->group($attributes, function ($router) { |
|
72 | + $router->group($attributes, function($router) { |
|
73 | 73 | $router->resources([ |
74 | 74 | 'auth/users' => 'UserController', |
75 | 75 | 'auth/roles' => 'RoleController', |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | */ |
93 | 93 | public function register() |
94 | 94 | { |
95 | - $this->router->group($this->attributes, function ($router) { |
|
95 | + $this->router->group($this->attributes, function($router) { |
|
96 | 96 | foreach ($this->routes as $method => $arguments) { |
97 | 97 | foreach ($arguments as $argument) { |
98 | 98 | call_user_func_array([$router, $method], $argument); |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | } |
22 | 22 | |
23 | 23 | if (is_array($permission)) { |
24 | - collect($permission)->each(function ($permission) { |
|
24 | + collect($permission)->each(function($permission) { |
|
25 | 25 | call_user_func([Permission::class, 'check'], $permission); |
26 | 26 | }); |
27 | 27 | |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | */ |
75 | 75 | protected static function error() |
76 | 76 | { |
77 | - $content = Admin::content(function ($content) { |
|
77 | + $content = Admin::content(function($content) { |
|
78 | 78 | $content->body(view('admin::deny')); |
79 | 79 | }); |
80 | 80 |