@@ -4,7 +4,7 @@ discard block |
||
4 | 4 | |
5 | 5 | $namespace = cbControllersNS(); |
6 | 6 | /* ROUTER FOR UPLOADS */ |
7 | -Route::group(['middleware' => ['web'], 'namespace' => $namespace], function () { |
|
7 | +Route::group(['middleware' => ['web'], 'namespace' => $namespace], function() { |
|
8 | 8 | Route::get('uploads/{one?}/{two?}/{three?}/{four?}/{five?}', ['uses' => 'FileController@getPreview', 'as' => 'fileControllerPreview']); |
9 | 9 | }); |
10 | 10 | |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | 'middleware' => ['web', \crocodicstudio\crudbooster\CBCoreModule\middlewares\CBBackend::class], |
14 | 14 | 'prefix' => cbAdminPath(), |
15 | 15 | 'namespace' => ctrlNamespace(), |
16 | -], function () { |
|
16 | +], function() { |
|
17 | 17 | try { |
18 | 18 | $argv = request()->server('argv'); |
19 | 19 | if (is_array($argv) && isset($argv[1]) && !starts_with($argv[1], 'route:')) { |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | 'middleware' => ['web', \crocodicstudio\crudbooster\CBCoreModule\middlewares\CBSuperadmin::class], |
34 | 34 | 'prefix' => cbAdminPath(), |
35 | 35 | 'namespace' => $namespace, |
36 | -], function () { |
|
36 | +], function() { |
|
37 | 37 | Route::post('{module}/do-upload-import-data', 'FileController@uploadImportData')->name('UploadImportData'); |
38 | 38 | Route::post('{module}/upload-summernote', 'FileController@uploadSummernote')->name('UploadImportData'); |
39 | 39 | Route::post('{module}/upload-file', 'FileController@uploadFile')->name('UploadImportData'); |
@@ -116,7 +116,7 @@ |
||
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 = [ |
@@ -82,7 +82,7 @@ |
||
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(); |
@@ -99,7 +99,7 @@ discard block |
||
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 |
||
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 | ]; |
@@ -4,7 +4,7 @@ |
||
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'); |
@@ -104,7 +104,7 @@ |
||
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 | } |
@@ -34,7 +34,7 @@ |
||
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('--'); |
@@ -75,7 +75,7 @@ discard block |
||
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 |
||
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 |
||
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; |
@@ -8,7 +8,7 @@ |
||
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)) { |