@@ -43,7 +43,7 @@ |
||
43 | 43 | 'isNameField', |
44 | 44 | 'isUrlField', |
45 | 45 | ]; |
46 | - foreach ($map as $methodName){ |
|
46 | + foreach ($map as $methodName) { |
|
47 | 47 | if (self::$methodName($colName)) { |
48 | 48 | return $methodName; |
49 | 49 | } |
@@ -4,7 +4,7 @@ discard block |
||
4 | 4 | |
5 | 5 | $namespace = '\crocodicstudio\crudbooster\controllers'; |
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', CBBackend::class], |
14 | 14 | 'prefix' => cbAdminPath(), |
15 | 15 | 'namespace' => ctrlNamespace(), |
16 | -], function () { |
|
16 | +], function() { |
|
17 | 17 | CRUDBooster::routeController('users', 'AdminUsersController'); |
18 | 18 | try { |
19 | 19 | $modules = DB::table('cms_moduls')->where('path', '!=', '')->where('controller', '!=', '')->where('is_protected', 0)->get(); |
@@ -29,10 +29,10 @@ discard block |
||
29 | 29 | 'middleware' => ['web', \crocodicstudio\crudbooster\middlewares\CBSuperadmin::class], |
30 | 30 | 'prefix' => cbAdminPath(), |
31 | 31 | 'namespace' => $namespace, |
32 | -], function () { |
|
33 | - Route::post('{module}/do-upload-import-data', ['uses' => 'FileController@uploadImportData', 'as' => 'UploadImportData',]); |
|
34 | - Route::post('{module}/upload-summernote', ['uses' => 'FileController@uploadSummernote', 'as' => 'UploadImportData',]); |
|
35 | - Route::post('{module}/upload-file', ['uses' => 'FileController@uploadFile', 'as' => 'UploadImportData',]); |
|
36 | - Route::post('{module}/done-import', ['uses' => 'FileController@doneImport', 'as' => 'doneImportData',]); |
|
32 | +], function() { |
|
33 | + Route::post('{module}/do-upload-import-data', ['uses' => 'FileController@uploadImportData', 'as' => 'UploadImportData', ]); |
|
34 | + Route::post('{module}/upload-summernote', ['uses' => 'FileController@uploadSummernote', 'as' => 'UploadImportData', ]); |
|
35 | + Route::post('{module}/upload-file', ['uses' => 'FileController@uploadFile', 'as' => 'UploadImportData', ]); |
|
36 | + Route::post('{module}/done-import', ['uses' => 'FileController@doneImport', 'as' => 'doneImportData', ]); |
|
37 | 37 | }); |
38 | 38 |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | |
31 | 31 | public function getLockscreen() |
32 | 32 | { |
33 | - if (! CRUDBooster::myId()) { |
|
33 | + if (!CRUDBooster::myId()) { |
|
34 | 34 | Session::flush(); |
35 | 35 | return redirect()->route('getLogin')->with('message', cbTrans('alert_session_expired')); |
36 | 36 | } |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | |
97 | 97 | private function validateForgotPass() |
98 | 98 | { |
99 | - $validator = Validator::make(request()->all(), ['email' => 'required|email|exists:cms_users',]); |
|
99 | + $validator = Validator::make(request()->all(), ['email' => 'required|email|exists:cms_users', ]); |
|
100 | 100 | |
101 | 101 | if ($validator->fails()) { |
102 | 102 | $message = $validator->errors()->all(); |
@@ -69,7 +69,7 @@ |
||
69 | 69 | */ |
70 | 70 | private function validatePassword($password, $users) |
71 | 71 | { |
72 | - if (! \Hash::check($password, $users->password)) { |
|
72 | + if (!\Hash::check($password, $users->password)) { |
|
73 | 73 | $resp = redirect()->route('getLogin')->with('message', cbTrans('alert_password_wrong')); |
74 | 74 | sendAndTerminate($resp); |
75 | 75 | } |
@@ -83,7 +83,7 @@ |
||
83 | 83 | |
84 | 84 | private function checkHideForm() |
85 | 85 | { |
86 | - if (! count($this->hide_form)) { |
|
86 | + if (!count($this->hide_form)) { |
|
87 | 87 | return null; |
88 | 88 | } |
89 | 89 | foreach ($this->form as $i => $f) { |