@@ -14,8 +14,8 @@ |
||
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 | } |
21 | 21 |
@@ -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 | } |
22 | 22 |
@@ -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 | } |
22 | 22 |
@@ -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 |
@@ -15,8 +15,8 @@ |
||
15 | 15 | public function boot() |
16 | 16 | { |
17 | 17 | $this->app['view']->addNamespace('CbSettings', __DIR__.'/views'); |
18 | - $this->loadRoutesFrom( __DIR__.'/settings_routes.php'); |
|
19 | - $this->loadMigrationsFrom(__DIR__ . '/migrations'); |
|
18 | + $this->loadRoutesFrom(__DIR__.'/settings_routes.php'); |
|
19 | + $this->loadMigrationsFrom(__DIR__.'/migrations'); |
|
20 | 20 | app('CbDynamicMenus')->addSuperAdminMenu('CbSettings::menu'); |
21 | 21 | } |
22 | 22 |
@@ -15,8 +15,8 @@ |
||
15 | 15 | public function boot() |
16 | 16 | { |
17 | 17 | $this->app['view']->addNamespace('CbStatistics', __DIR__.'/views'); |
18 | - $this->loadRoutesFrom( __DIR__.'/statistic_route.php'); |
|
19 | - $this->loadMigrationsFrom(__DIR__ . '/migrations'); |
|
18 | + $this->loadRoutesFrom(__DIR__.'/statistic_route.php'); |
|
19 | + $this->loadMigrationsFrom(__DIR__.'/migrations'); |
|
20 | 20 | app('CbDynamicMenus')->addSuperAdminMenu('CbStatistics::menu'); |
21 | 21 | } |
22 | 22 |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | { |
33 | 33 | $filterColumn = $this->filterFalsyValues($filterColumn); |
34 | 34 | |
35 | - $this->query->where(function ($query) use ($filterColumn) { |
|
35 | + $this->query->where(function($query) use ($filterColumn) { |
|
36 | 36 | foreach ($filterColumn as $key => $fc) { |
37 | 37 | |
38 | 38 | $value = array_get($fc, 'value'); |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | case 'in': |
56 | 56 | case 'not in': |
57 | 57 | $value = explode(',', $value); |
58 | - if (! empty($value)) { |
|
58 | + if (!empty($value)) { |
|
59 | 59 | $query->whereIn($key, $value); |
60 | 60 | } |
61 | 61 | break; |
@@ -97,11 +97,11 @@ discard block |
||
97 | 97 | */ |
98 | 98 | private function filterFalsyValues($filterColumn) |
99 | 99 | { |
100 | - return array_filter($filterColumn, function ($fc) { |
|
100 | + return array_filter($filterColumn, function($fc) { |
|
101 | 101 | $value = array_get($fc, 'value'); |
102 | 102 | $type = array_get($fc, 'type'); |
103 | 103 | |
104 | - if (($type == 'between') || ! $value || ! $type) { |
|
104 | + if (($type == 'between') || !$value || !$type) { |
|
105 | 105 | return false; |
106 | 106 | } |
107 | 107 |