@@ -14,7 +14,7 @@ |
||
| 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 | $this->registerModule(); |
| 20 | 20 | } |
@@ -14,8 +14,8 @@ |
||
| 14 | 14 | public function boot() |
| 15 | 15 | { |
| 16 | 16 | $this->app['view']->addNamespace('CbSettings', __DIR__.'/views'); |
| 17 | - $this->loadRoutesFrom( __DIR__.'/settings_routes.php'); |
|
| 18 | - $this->loadMigrationsFrom(__DIR__ . '/migrations'); |
|
| 17 | + $this->loadRoutesFrom(__DIR__.'/settings_routes.php'); |
|
| 18 | + $this->loadMigrationsFrom(__DIR__.'/migrations'); |
|
| 19 | 19 | app('CbDynamicMenus')->addSuperAdminMenu('CbSettings::menu'); |
| 20 | 20 | $this->registerModule(); |
| 21 | 21 | } |
@@ -14,9 +14,9 @@ |
||
| 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')], 'cb_localization'); |
| 19 | - $this->loadMigrationsFrom(__DIR__ . '/migrations'); |
|
| 19 | + $this->loadMigrationsFrom(__DIR__.'/migrations'); |
|
| 20 | 20 | app('CbDynamicMenus')->addSuperAdminMenu('CbPrivilege::menu'); |
| 21 | 21 | $this->registerModule(); |
| 22 | 22 | } |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | { |
| 17 | 17 | $this->app['view']->addNamespace('CbApiGen', __DIR__.'/views'); |
| 18 | 18 | $this->loadRoutesFrom(__DIR__.'/api_generator_routes.php'); |
| 19 | - $this->loadMigrationsFrom(__DIR__ . '/migrations'); |
|
| 19 | + $this->loadMigrationsFrom(__DIR__.'/migrations'); |
|
| 20 | 20 | app('CbDynamicMenus')->addSuperAdminMenu('CbApiGen::menu'); |
| 21 | 21 | $this->registerModule(); |
| 22 | 22 | } |
@@ -14,8 +14,8 @@ discard block |
||
| 14 | 14 | public function boot() |
| 15 | 15 | { |
| 16 | 16 | $this->app['view']->addNamespace('CbEmailTpl', __DIR__.'/views'); |
| 17 | - $this->loadRoutesFrom( __DIR__.'/email_templates_routes.php'); |
|
| 18 | - $this->loadMigrationsFrom(__DIR__ . '/migrations'); |
|
| 17 | + $this->loadRoutesFrom(__DIR__.'/email_templates_routes.php'); |
|
| 18 | + $this->loadMigrationsFrom(__DIR__.'/migrations'); |
|
| 19 | 19 | app('CbDynamicMenus')->addSuperAdminMenu('CbEmailTpl::super_admin_menu'); |
| 20 | 20 | $this->registerModule(); |
| 21 | 21 | } |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | |
| 33 | 33 | private function registerModule() |
| 34 | 34 | { |
| 35 | - app('CbModulesRegistery')->addModule('email-templates', (object) [ |
|
| 35 | + app('CbModulesRegistery')->addModule('email-templates', (object) [ |
|
| 36 | 36 | 'name' => trans('crudbooster.Email_Templates'), |
| 37 | 37 | 'icon' => 'fa fa-envelope-o', |
| 38 | 38 | 'path' => 'email_templates', |
@@ -14,8 +14,8 @@ |
||
| 14 | 14 | public function boot() |
| 15 | 15 | { |
| 16 | 16 | $this->app['view']->addNamespace('CbMenu', __DIR__.'/views'); |
| 17 | - $this->loadRoutesFrom( __DIR__.'/menus_routes.php'); |
|
| 18 | - $this->loadMigrationsFrom(__DIR__ . '/migrations'); |
|
| 17 | + $this->loadRoutesFrom(__DIR__.'/menus_routes.php'); |
|
| 18 | + $this->loadMigrationsFrom(__DIR__.'/migrations'); |
|
| 19 | 19 | app('CbDynamicMenus')->addSuperAdminMenu('CbMenu::menu'); |
| 20 | 20 | app('CbDynamicMenus')->addMenu('CbMenu::dynamic_menus'); |
| 21 | 21 | $this->registerModule(); |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | app('CbDynamicMenus')->addMenu('CbMenu::dynamic_menus'); |
| 21 | 21 | $this->registerModule(); |
| 22 | 22 | |
| 23 | - /* $hasDashboard = \Crocodicstudio\Crudbooster\Modules\MenuModule\MenuRepo::sidebarDashboard(); |
|
| 23 | + /* $hasDashboard = \Crocodicstudio\Crudbooster\Modules\MenuModule\MenuRepo::sidebarDashboard(); |
|
| 24 | 24 | if (false && $hasDashboard) { |
| 25 | 25 | app('CbDynamicMenus')->addMenu('CbMenu::dashboard'); |
| 26 | 26 | }*/ |
@@ -13,9 +13,9 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function boot() |
| 15 | 15 | { |
| 16 | - $this->loadViewsFrom( __DIR__.'/views', 'CbNotifications'); |
|
| 17 | - $this->loadRoutesFrom( __DIR__.'/notifications_routes.php'); |
|
| 18 | - $this->loadMigrationsFrom(__DIR__ . '/migrations'); |
|
| 16 | + $this->loadViewsFrom(__DIR__.'/views', 'CbNotifications'); |
|
| 17 | + $this->loadRoutesFrom(__DIR__.'/notifications_routes.php'); |
|
| 18 | + $this->loadMigrationsFrom(__DIR__.'/migrations'); |
|
| 19 | 19 | $this->registerModule(); |
| 20 | 20 | } |
| 21 | 21 | |
@@ -14,8 +14,8 @@ |
||
| 14 | 14 | public function boot() |
| 15 | 15 | { |
| 16 | 16 | $this->app['view']->addNamespace('CbStatistics', __DIR__.'/views'); |
| 17 | - $this->loadRoutesFrom( __DIR__.'/statistic_route.php'); |
|
| 18 | - $this->loadMigrationsFrom(__DIR__ . '/migrations'); |
|
| 17 | + $this->loadRoutesFrom(__DIR__.'/statistic_route.php'); |
|
| 18 | + $this->loadMigrationsFrom(__DIR__.'/migrations'); |
|
| 19 | 19 | app('CbDynamicMenus')->addSuperAdminMenu('CbStatistics::menu'); |
| 20 | 20 | $this->registerModule(); |
| 21 | 21 | } |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | //$orig_mainpath = $CbCtrl->data['mainpath']; |
| 79 | 79 | //$titleField = $CbCtrl->titleField; |
| 80 | 80 | $number = (request('page', 1) - 1) * $limit + 1; |
| 81 | - $columnsTable = array_filter($columns, function ($col) { |
|
| 81 | + $columnsTable = array_filter($columns, function($col) { |
|
| 82 | 82 | return $col['visible'] ?? true; |
| 83 | 83 | }); |
| 84 | 84 | $htmlContents = (new RowContent($CbCtrl))->calculate($data, $number, $columnsTable); //end foreach data[result] |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | $data['parent_field'] = DbInspector::getRelatedTableName($parent); |
| 103 | 103 | } |
| 104 | 104 | |
| 105 | - if (! $data['parent_field']) { |
|
| 105 | + if (!$data['parent_field']) { |
|
| 106 | 106 | return $data; |
| 107 | 107 | } |
| 108 | 108 | |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | */ |
| 122 | 122 | private function _filterForParent($result) |
| 123 | 123 | { |
| 124 | - if (! request('parent_id')) { |
|
| 124 | + if (!request('parent_id')) { |
|
| 125 | 125 | return null; |
| 126 | 126 | } |
| 127 | 127 | |
@@ -192,9 +192,9 @@ discard block |
||
| 192 | 192 | private function _applyWhereAndQfilters($result, $columnsTable, $table) |
| 193 | 193 | { |
| 194 | 194 | if (request('q')) { |
| 195 | - $result->where(function ($query) use ($columnsTable) { |
|
| 195 | + $result->where(function($query) use ($columnsTable) { |
|
| 196 | 196 | foreach ($columnsTable as $col) { |
| 197 | - if (! $col['field_with']) { |
|
| 197 | + if (!$col['field_with']) { |
|
| 198 | 198 | continue; |
| 199 | 199 | } |
| 200 | 200 | $query->orwhere($col['field_with'], "like", "%".request("q")."%"); |