Completed
Push — master ( 8baa7c...765220 )
by Song
02:38
created
src/Middleware/PermissionMiddleware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Routing/Router.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -65,11 +65,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Auth/Permission.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.