@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | if ($filter_is_orderby === true) { |
69 | 69 | (new Order($this->cb))->handle($result, $table); |
70 | 70 | } |
71 | - $limit = is_string($limit) ? (int)$limit : 15; |
|
71 | + $limit = is_string($limit) ? (int) $limit : 15; |
|
72 | 72 | $data['result'] = $result->paginate($limit); |
73 | 73 | |
74 | 74 | $data['columns'] = $columns_table; |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | //LISTING INDEX HTML |
81 | 81 | $addAction = $CbCtrl->data['addAction']; |
82 | 82 | |
83 | - if (! empty($CbCtrl->sub_module)) { |
|
83 | + if (!empty($CbCtrl->sub_module)) { |
|
84 | 84 | $addAction = $this->_handleSubModules($addAction); |
85 | 85 | } |
86 | 86 | |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | private function _handleParentTable() |
102 | 102 | { |
103 | 103 | $data = []; |
104 | - $parent = (string)request('parent_table'); |
|
104 | + $parent = (string) request('parent_table'); |
|
105 | 105 | $data['parent_table'] = CRUDBooster::first(request('parent_table'), request('parent_id')); |
106 | 106 | if (request('foreign_key')) { |
107 | 107 | $data['parent_field'] = request('foreign_key'); |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | $data['parent_field'] = DbInspector::getTableForeignKey($parent); |
110 | 110 | } |
111 | 111 | |
112 | - if (! $data['parent_field']) { |
|
112 | + if (!$data['parent_field']) { |
|
113 | 113 | return $data; |
114 | 114 | } |
115 | 115 | |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | */ |
128 | 128 | private function _filterForParent($result) |
129 | 129 | { |
130 | - if (! request('parent_id')) { |
|
130 | + if (!request('parent_id')) { |
|
131 | 131 | return null; |
132 | 132 | } |
133 | 133 | |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | */ |
142 | 142 | private function _filterOutSoftDeleted($tableColumns, $result) |
143 | 143 | { |
144 | - if (! in_array('deleted_at', $tableColumns)) { |
|
144 | + if (!in_array('deleted_at', $tableColumns)) { |
|
145 | 145 | return; |
146 | 146 | } |
147 | 147 | $result->where($this->table.'.deleted_at', '=', null); |
@@ -200,9 +200,9 @@ discard block |
||
200 | 200 | private function _applyWhereAndQfilters($result, $columnsTable, $table) |
201 | 201 | { |
202 | 202 | if (request('q')) { |
203 | - $result->where(function ($query) use ($columnsTable) { |
|
203 | + $result->where(function($query) use ($columnsTable) { |
|
204 | 204 | foreach ($columnsTable as $col) { |
205 | - if (! $col['field_with']) { |
|
205 | + if (!$col['field_with']) { |
|
206 | 206 | continue; |
207 | 207 | } |
208 | 208 | $query->orwhere($col['field_with'], "like", "%".request("q")."%"); |
@@ -246,7 +246,7 @@ discard block |
||
246 | 246 | return CRUDBooster::adminPath($module['path']).'?parent_table='.$table_parent.'&parent_columns=' |
247 | 247 | .$module['parent_columns'].'&parent_columns_alias=' |
248 | 248 | .$module['parent_columns_alias'].'&parent_id=[' |
249 | - .(! isset($module['custom_parent_id']) ? "id" : $module['custom_parent_id']) |
|
249 | + .(!isset($module['custom_parent_id']) ? "id" : $module['custom_parent_id']) |
|
250 | 250 | .']&return_url='.urlencode(Request::fullUrl()).'&foreign_key=' |
251 | 251 | .$module['foreign_key'].'&label='.urlencode($module['label']); |
252 | 252 | } |