@@ -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 |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | //LISTING INDEX HTML |
111 | 111 | $addAction = $this->cb->data['addAction']; |
112 | 112 | |
113 | - if (! empty($this->cb->sub_module)) { |
|
113 | + if (!empty($this->cb->sub_module)) { |
|
114 | 114 | $addAction = $this->_handleSubModules($addAction); |
115 | 115 | } |
116 | 116 | |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | return CRUDBooster::adminPath($module['path']).'?parent_table='.$parentTable.'&parent_columns=' |
159 | 159 | .$module['parent_columns'].'&parent_columns_alias=' |
160 | 160 | .$module['parent_columns_alias'].'&parent_id=[' |
161 | - .(! isset($module['custom_parent_id']) ? "id" : $module['custom_parent_id']) |
|
161 | + .(!isset($module['custom_parent_id']) ? "id" : $module['custom_parent_id']) |
|
162 | 162 | .']&return_url='.urlencode(request()->fullUrl()).'&foreign_key=' |
163 | 163 | .$module['foreign_key'].'&label='.urlencode($module['label']); |
164 | 164 | } |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | //$orig_mainpath = $CbCtrl->data['mainpath']; |
78 | 78 | //$titleField = $CbCtrl->titleField; |
79 | 79 | $number = (request('page', 1) - 1) * $limit + 1; |
80 | - $columnsTable = array_filter($columns, function ($col) { |
|
80 | + $columnsTable = array_filter($columns, function($col) { |
|
81 | 81 | return $col['visible'] !== false; |
82 | 82 | }); |
83 | 83 | $htmlContents = (new RowContent($CbCtrl))->calculate($data, $number, $columnsTable); //end foreach data[result] |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | $data['parent_field'] = DbInspector::getRelatedTableName($parent); |
102 | 102 | } |
103 | 103 | |
104 | - if (! $data['parent_field']) { |
|
104 | + if (!$data['parent_field']) { |
|
105 | 105 | return $data; |
106 | 106 | } |
107 | 107 | |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | */ |
121 | 121 | private function _filterForParent($result) |
122 | 122 | { |
123 | - if (! request('parent_id')) { |
|
123 | + if (!request('parent_id')) { |
|
124 | 124 | return null; |
125 | 125 | } |
126 | 126 | |
@@ -191,9 +191,9 @@ discard block |
||
191 | 191 | private function _applyWhereAndQfilters($result, $columnsTable, $table) |
192 | 192 | { |
193 | 193 | if (request('q')) { |
194 | - $result->where(function ($query) use ($columnsTable) { |
|
194 | + $result->where(function($query) use ($columnsTable) { |
|
195 | 195 | foreach ($columnsTable as $col) { |
196 | - if (! $col['field_with']) { |
|
196 | + if (!$col['field_with']) { |
|
197 | 197 | continue; |
198 | 198 | } |
199 | 199 | $query->orwhere($col['field_with'], "like", "%".request("q")."%"); |
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function handle($query, $table, $orderBy, $primaryKey) |
14 | 14 | { |
15 | - if (! $orderBy) { |
|
15 | + if (!$orderBy) { |
|
16 | 16 | $query->orderby($table.'.'.$primaryKey, 'desc'); |
17 | 17 | return; |
18 | 18 | } |