Passed
Push — master ( 61cc62...67a7e6 )
by Iman
04:30
created
src/Modules/ApiGeneratorModule/CBAuthAPIMiddleware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@
 block discarded – undo
116 116
      */
117 117
     private function tokenMissMatchDevice($senderToken, $userAgent, $serverToken)
118 118
     {
119
-        if (! Cache::has($senderToken) || Cache::get($senderToken) == $userAgent) {
119
+        if (!Cache::has($senderToken) || Cache::get($senderToken) == $userAgent) {
120 120
             return;
121 121
         }
122 122
         $result = [
Please login to merge, or discard this patch.
src/Modules/AuthModule/AuthController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
 
83 83
     private function validateForgotPass()
84 84
     {
85
-        $validator = Validator::make(request()->all(), ['email' => 'required|email|exists:cms_users',]);
85
+        $validator = Validator::make(request()->all(), ['email' => 'required|email|exists:cms_users', ]);
86 86
 
87 87
         if ($validator->fails()) {
88 88
             $message = $validator->errors()->all();
Please login to merge, or discard this patch.
src/Modules/PrivilegeModule/AdminPrivilegesController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
         foreach (Request::input('privileges', []) as $moduleId => $data) {
100 100
             //Check Menu
101 101
 
102
-            $arrs = array_get_keys($data, ['can_see_module', 'can_create', 'can_read', 'can_edit', 'can_delete',], 0);
102
+            $arrs = array_get_keys($data, ['can_see_module', 'can_create', 'can_read', 'can_edit', 'can_delete', ], 0);
103 103
             $this->savePermissions($id, $moduleId, $arrs);
104 104
         }
105 105
 
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
         $this->col[] = [
181 181
             'label' => 'Superadmin',
182 182
             'name' => 'is_superadmin',
183
-            'callback' => function ($row) {
183
+            'callback' => function($row) {
184 184
                 return ($row->is_superadmin) ? "<span class='label label-success'>Superadmin</span>" : "<span class='label label-default'>Standard</span>";
185 185
             },
186 186
         ];
Please login to merge, or discard this patch.
src/Modules/StatisticModule/statistic_route.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
     'middleware' => ['web', \crocodicstudio\crudbooster\CBCoreModule\middlewares\CBSuperadmin::class],
5 5
     'prefix' => cbAdminPath(),
6 6
     'namespace' => cbModulesNS('StatisticModule'),
7
-], function () {
7
+], function() {
8 8
     Route::get('statistic-builder/', 'AdminStatisticBuilderController@getIndex')->name('AdminStatisticBuilderControllerGetIndex');
9 9
     Route::get('statistic-builder/show-dashboard', 'AdminStatisticBuilderController@getShowDashboard')->name('AdminStatisticBuilderControllerGetShowDashboard');
10 10
     Route::get('statistic-builder/show', 'AdminStatisticBuilderController@getShow')->name('AdminStatisticBuilderControllerGetShow');
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_modules', 'cms_modules.id', '=', 'id_cms_modules')->select('cms_modules.name', 'cms_modules.path', 'can_see_module', 'can_create', 'can_read', 'can_edit', 'can_delete')->get() ?: [];
109 109
         });
110 110
     }
Please login to merge, or discard this patch.
src/CBCoreModule/Installer/InstallationCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
 
35 35
         $printer->printHeader();
36 36
 
37
-        if (! ((new RequirementChecker($this))->check())) {
37
+        if (!((new RequirementChecker($this))->check())) {
38 38
             $this->info('Sorry unfortunately your system is not meet with our requirements !');
39 39
             $printer->printFooter(false);
40 40
             $this->info('--');
Please login to merge, or discard this patch.
src/helpers/CRUDBooster.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     {
76 76
         $table = self::parseSqlTable($table)['table'];
77 77
 
78
-        if (! is_array($id)) {
78
+        if (!is_array($id)) {
79 79
             $id = [DbInspector::findPK($table) => $id];
80 80
         }
81 81
 
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
         $controllerName = basename($controllerName);
95 95
         $routeUrl = route($controllerName.'GetIndex');
96 96
 
97
-        if (! $path) {
97
+        if (!$path) {
98 98
             return trim($routeUrl, '/');
99 99
         }
100 100
 
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
     {
120 120
         $tables = DbInspector::listTables();
121 121
 
122
-        $filter = function ($tableName) {
122
+        $filter = function($tableName) {
123 123
 
124 124
             if ($tableName == config('database.migrations')) {
125 125
                 return false;
Please login to merge, or discard this patch.
src/CBCoreModule/ViewHelpers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
     {
9 9
         @$get = $_GET;
10 10
 
11
-        if (! $get) {
11
+        if (!$get) {
12 12
             return '';
13 13
         }
14 14
         if (is_array($exception)) {
Please login to merge, or discard this patch.
src/Modules/ModuleGenerator/CbModulesGeneratorServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     public function boot()
15 15
     {
16 16
         $this->app['view']->addNamespace('CbModulesGen', __DIR__.'/views');
17
-        $this->loadRoutesFrom( __DIR__.'/module_generator_routes.php');
17
+        $this->loadRoutesFrom(__DIR__.'/module_generator_routes.php');
18 18
         $this->loadMigrationsFrom(__DIR__.'/migrations');
19 19
     }
20 20
 
Please login to merge, or discard this patch.