Passed
Push — master ( ca3c2c...dc1551 )
by Iman
07:10 queued 02:46
created
src/Modules/PrivilegeModule/PrivilegeHelpers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
     public static function myPrivilege()
79 79
     {
80 80
         $roles = session('admin_privileges_roles');
81
-        if (! $roles) {
81
+        if (!$roles) {
82 82
             return;
83 83
         }
84 84
         foreach ($roles as $role) {
Please login to merge, or discard this patch.
src/CRUDBoosterServiceProvider.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -55,17 +55,17 @@  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/CBHook.php'))) {
58
+        if (!file_exists(app_path('Http/Controllers/CBHook.php'))) {
59 59
             $this->publishes([__DIR__.'/userfiles/controllers/CBHook.php' => app_path('Http/Controllers/CBHook.php')], 'CBHook');
60 60
         }
61 61
 
62
-        if (! file_exists(app_path('Http/Controllers/AdminUsersController.php'))) {
62
+        if (!file_exists(app_path('Http/Controllers/AdminUsersController.php'))) {
63 63
             $this->publishes([__DIR__.'/userfiles/controllers/AdminUsersController.php' => app_path('Http/Controllers/AdminUsersController.php')], 'cb_user_controller');
64 64
         }
65 65
 
66 66
 
67 67
         $this->defineValidationRules();
68
-        $this->loadRoutesFrom( __DIR__.'/routes.php');
68
+        $this->loadRoutesFrom(__DIR__.'/routes.php');
69 69
     }
70 70
 
71 71
     /**
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     {
78 78
         $this->mergeConfigFrom(__DIR__.'/configs/crudbooster.php', 'crudbooster');
79 79
 
80
-        $this->app->singleton('crudbooster', function () {
80
+        $this->app->singleton('crudbooster', function() {
81 81
             return true;
82 82
         });
83 83
 
@@ -123,14 +123,14 @@  discard block
 block discarded – undo
123 123
 
124 124
     private function registerCrudboosterCommand()
125 125
     {
126
-        $this->app->singleton('crudboosterinstall', function () {
126
+        $this->app->singleton('crudboosterinstall', function() {
127 127
             return new CrudboosterInstallationCommand;
128 128
         });
129 129
     }
130 130
 
131 131
     private function defineValidationRules()
132 132
     {
133
-        \Validator::extend('alpha_spaces', function ($attribute, $value) {
133
+        \Validator::extend('alpha_spaces', function($attribute, $value) {
134 134
             // This will only accept alpha and spaces.
135 135
             // If you want to accept hyphens use: /^[\pL\s-]+$/u.
136 136
             return preg_match('/^[\pL\s]+$/u', $value);
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
 
140 140
     private function defineAuthGuard()
141 141
     {
142
-        config()->offsetSet('auth.providers.cb_users', ['driver' => 'eloquent', 'model' => CbUser::class,]);
142
+        config()->offsetSet('auth.providers.cb_users', ['driver' => 'eloquent', 'model' => CbUser::class, ]);
143 143
         config()->offsetSet('auth.guards.cbAdmin', ['driver' => 'session', 'provider' => 'cb_users']);
144 144
     }
145 145
 }
Please login to merge, or discard this patch.
src/CBCoreModule/CbUser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
 
40 40
     public function myPhoto() : string
41 41
     {
42
-        $photo =  $this->photo ?: 'vendor/crudbooster/avatar.jpg';
42
+        $photo = $this->photo ?: 'vendor/crudbooster/avatar.jpg';
43 43
         return asset($photo);
44 44
     }
45 45
 
Please login to merge, or discard this patch.