@@ -15,7 +15,7 @@ |
||
| 15 | 15 | public function boot() |
| 16 | 16 | { |
| 17 | 17 | $this->app['view']->addNamespace('CbStatistics', __DIR__.'/views'); |
| 18 | - $this->loadRoutesFrom( __DIR__.'/statistic_route.php'); |
|
| 18 | + $this->loadRoutesFrom(__DIR__.'/statistic_route.php'); |
|
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | /** |
@@ -95,11 +95,11 @@ discard block |
||
| 95 | 95 | $component_name = $component->component_name; |
| 96 | 96 | $area_name = $component->area_name; |
| 97 | 97 | $config = json_decode($component->config); |
| 98 | - if (! $config) { |
|
| 98 | + if (!$config) { |
|
| 99 | 99 | return response()->json(compact('componentID', 'layout')); |
| 100 | 100 | } |
| 101 | 101 | foreach ($config as $key => $value) { |
| 102 | - if (! $value) { |
|
| 102 | + if (!$value) { |
|
| 103 | 103 | continue; |
| 104 | 104 | } |
| 105 | 105 | $command = 'showFunction'; |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | 'name' => 'Untitled', |
| 128 | 128 | ]; |
| 129 | 129 | |
| 130 | - if (! $data['created_at'] && Schema::hasColumn('cms_statistic_components', 'created_at')) { |
|
| 130 | + if (!$data['created_at'] && Schema::hasColumn('cms_statistic_components', 'created_at')) { |
|
| 131 | 131 | $data['created_at'] = date('Y-m-d H:i:s'); |
| 132 | 132 | } |
| 133 | 133 | |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | public function boot() |
| 15 | 15 | { |
| 16 | 16 | $this->app['view']->addNamespace('CbPrivilege', __DIR__.'/views'); |
| 17 | - $this->loadRoutesFrom( __DIR__.'/privileges_routes.php'); |
|
| 17 | + $this->loadRoutesFrom(__DIR__.'/privileges_routes.php'); |
|
| 18 | 18 | $this->publishes([__DIR__.'/localization' => resource_path('lang/crudbooster')], 'cb_localization'); |
| 19 | 19 | } |
| 20 | 20 | |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | $this->col[] = [ |
| 32 | 32 | 'label' => 'Superadmin', |
| 33 | 33 | 'name' => 'is_superadmin', |
| 34 | - 'callback' => function ($row) { |
|
| 34 | + 'callback' => function($row) { |
|
| 35 | 35 | return ($row->is_superadmin) ? "<span class='label label-success'>Superadmin</span>" : "<span class='label label-default'>Standard</span>"; |
| 36 | 36 | }, |
| 37 | 37 | ]; |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | foreach (Request::input('privileges', []) as $moduleId => $data) { |
| 112 | 112 | //Check Menu |
| 113 | 113 | |
| 114 | - $arrs = array_get_keys($data, ['is_visible', 'is_create', 'is_read', 'is_edit', 'is_delete',], 0); |
|
| 114 | + $arrs = array_get_keys($data, ['is_visible', 'is_create', 'is_read', 'is_edit', 'is_delete', ], 0); |
|
| 115 | 115 | $this->savePermissions($id, $moduleId, $arrs); |
| 116 | 116 | } |
| 117 | 117 | |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function boot() |
| 15 | 15 | { |
| 16 | - $this->loadRoutesFrom( __DIR__.'/logs_routes.php'); |
|
| 16 | + $this->loadRoutesFrom(__DIR__.'/logs_routes.php'); |
|
| 17 | 17 | $this->publishes([__DIR__.'/localization' => resource_path('lang/crudbooster')], 'cb_localization'); |
| 18 | 18 | } |
| 19 | 19 | |
@@ -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 | } |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | $password = request("password"); |
| 77 | 77 | $users = CbUsersRepo::findByMail(request("email")); |
| 78 | 78 | |
| 79 | - if (! \Hash::check($password, $users->password)) { |
|
| 79 | + if (!\Hash::check($password, $users->password)) { |
|
| 80 | 80 | return redirect()->route('getLogin')->with('message', cbTrans('alert_password_wrong')); |
| 81 | 81 | } |
| 82 | 82 | |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | |
| 116 | 116 | public function postForgot() |
| 117 | 117 | { |
| 118 | - $validator = Validator::make(request()->all(), ['email' => 'required|email|exists:cms_users',]); |
|
| 118 | + $validator = Validator::make(request()->all(), ['email' => 'required|email|exists:cms_users', ]); |
|
| 119 | 119 | |
| 120 | 120 | if ($validator->fails()) { |
| 121 | 121 | $message = $validator->errors()->all(); |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | public function boot() |
| 16 | 16 | { |
| 17 | 17 | $this->app['view']->addNamespace('CbAuth', __DIR__.'/views'); |
| 18 | - $this->loadRoutesFrom( __DIR__.'/auth_routes.php'); |
|
| 18 | + $this->loadRoutesFrom(__DIR__.'/auth_routes.php'); |
|
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | /** |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | { |
| 11 | 11 | public function showForm($id) |
| 12 | 12 | { |
| 13 | - $controller = ModulesRepo::getControllerName($id);; |
|
| 13 | + $controller = ModulesRepo::getControllerName($id); ; |
|
| 14 | 14 | |
| 15 | 15 | $data = []; |
| 16 | 16 | $data['id'] = $id; |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | |
| 11 | 11 | class ControllerGenerator |
| 12 | 12 | { |
| 13 | - public static function generateController($table, $name = null){ |
|
| 13 | + public static function generateController($table, $name = null) { |
|
| 14 | 14 | |
| 15 | 15 | $controllerName = self::getControllerName($table, $name); |
| 16 | 16 | |