Passed
Push — master ( 8b5564...e666cf )
by Iman
08:54
created
src/CRUDBoosterServiceProvider.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -55,13 +55,13 @@  discard block
 block discarded – undo
55 55
             __DIR__.'/userfiles/views/vendor/crudbooster/type_components/readme.txt' => resource_path('views/vendor/crudbooster/type_components/readme.txt'),
56 56
         ], 'cb_type_components');
57 57
 
58
-        if (! file_exists(app_path('Http/Controllers/AdminUsersController.php'))) {
58
+        if (!file_exists(app_path('Http/Controllers/AdminUsersController.php'))) {
59 59
             $this->publishes([__DIR__.'/userfiles/controllers/AdminUsersController.php' => app_path('Http/Controllers/AdminUsersController.php')], 'cb_user_controller');
60 60
         }
61 61
 
62 62
 
63 63
         $this->defineValidationRules();
64
-        $this->loadRoutesFrom( __DIR__.'/routes.php');
64
+        $this->loadRoutesFrom(__DIR__.'/routes.php');
65 65
     }
66 66
 
67 67
     /**
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     {
74 74
         $this->mergeConfigFrom(__DIR__.'/configs/crudbooster.php', 'crudbooster');
75 75
 
76
-        $this->app->singleton('crudbooster', function () {
76
+        $this->app->singleton('crudbooster', function() {
77 77
             return true;
78 78
         });
79 79
 
@@ -119,14 +119,14 @@  discard block
 block discarded – undo
119 119
 
120 120
     private function registerCrudboosterCommand()
121 121
     {
122
-        $this->app->singleton('crudboosterinstall', function () {
122
+        $this->app->singleton('crudboosterinstall', function() {
123 123
             return new CrudboosterInstallationCommand;
124 124
         });
125 125
     }
126 126
 
127 127
     private function defineValidationRules()
128 128
     {
129
-        \Validator::extend('alpha_spaces', function ($attribute, $value) {
129
+        \Validator::extend('alpha_spaces', function($attribute, $value) {
130 130
             // This will only accept alpha and spaces.
131 131
             // If you want to accept hyphens use: /^[\pL\s-]+$/u.
132 132
             return preg_match('/^[\pL\s]+$/u', $value);
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
 
136 136
     private function defineAuthGuard()
137 137
     {
138
-        config()->offsetSet('auth.providers.cb_users', ['driver' => 'eloquent', 'model' => CbUser::class,]);
138
+        config()->offsetSet('auth.providers.cb_users', ['driver' => 'eloquent', 'model' => CbUser::class, ]);
139 139
         config()->offsetSet('auth.guards.cbAdmin', ['driver' => 'session', 'provider' => 'cb_users']);
140 140
     }
141 141
 }
Please login to merge, or discard this patch.
src/Modules/PrivilegeModule/PrivilegeHelpers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@
 block discarded – undo
104 104
     {
105 105
         $uid = auth('cbAdmin')->user()->id_cms_privileges;
106 106
 
107
-        return cache()->rememberForever('cb_admin_privileges_roles', function () use ($uid) {
107
+        return cache()->rememberForever('cb_admin_privileges_roles', function() use ($uid) {
108 108
             return \DB::table('cms_privileges_roles')->where('id_cms_privileges', $uid)->join('cms_moduls', 'cms_moduls.id', '=', 'id_cms_moduls')->select('cms_moduls.name', 'cms_moduls.path', 'is_visible', 'is_create', 'is_read', 'is_edit', 'is_delete')->get() ?: [];
109 109
         });
110 110
     }
Please login to merge, or discard this patch.
src/Modules/AuthModule/LoginController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
 
31 31
         $user = $this->usersRepo->findByMail(request("email"));
32 32
 
33
-        if (! auth('cbAdmin')->attempt($credentials)) {
33
+        if (!auth('cbAdmin')->attempt($credentials)) {
34 34
             $resp = redirect()->route('getLogin')->with('message', cbTrans('alert_password_wrong'));
35 35
             sendAndTerminate($resp);
36 36
         }
Please login to merge, or discard this patch.