@@ -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 | |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | $data['parent_field'] = DbInspector::getTableForeignKey(request('parent_table')); |
| 109 | 109 | } |
| 110 | 110 | |
| 111 | - if (! $data['parent_field']) { |
|
| 111 | + if (!$data['parent_field']) { |
|
| 112 | 112 | return $data; |
| 113 | 113 | } |
| 114 | 114 | |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | */ |
| 127 | 127 | private function _filterForParent($result) |
| 128 | 128 | { |
| 129 | - if (! request('parent_id')) { |
|
| 129 | + if (!request('parent_id')) { |
|
| 130 | 130 | return null; |
| 131 | 131 | } |
| 132 | 132 | |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | */ |
| 141 | 141 | private function _filterOutSoftDeleted($tableColumns, $result) |
| 142 | 142 | { |
| 143 | - if (! in_array('deleted_at', $tableColumns)) { |
|
| 143 | + if (!in_array('deleted_at', $tableColumns)) { |
|
| 144 | 144 | return; |
| 145 | 145 | } |
| 146 | 146 | $result->where($this->table.'.deleted_at', '=', null); |
@@ -199,9 +199,9 @@ discard block |
||
| 199 | 199 | private function _applyWhereAndQfilters($result, $columnsTable, $table) |
| 200 | 200 | { |
| 201 | 201 | if (request('q')) { |
| 202 | - $result->where(function ($query) use ($columnsTable) { |
|
| 202 | + $result->where(function($query) use ($columnsTable) { |
|
| 203 | 203 | foreach ($columnsTable as $col) { |
| 204 | - if (! $col['field_with']) { |
|
| 204 | + if (!$col['field_with']) { |
|
| 205 | 205 | continue; |
| 206 | 206 | } |
| 207 | 207 | $query->orwhere($col['field_with'], "like", "%".request("q")."%"); |
@@ -245,7 +245,7 @@ discard block |
||
| 245 | 245 | return CRUDBooster::adminPath($module['path']).'?parent_table='.$table_parent.'&parent_columns=' |
| 246 | 246 | .$module['parent_columns'].'&parent_columns_alias=' |
| 247 | 247 | .$module['parent_columns_alias'].'&parent_id=[' |
| 248 | - .(! isset($module['custom_parent_id']) ? "id" : $module['custom_parent_id']) |
|
| 248 | + .(!isset($module['custom_parent_id']) ? "id" : $module['custom_parent_id']) |
|
| 249 | 249 | .']&return_url='.urlencode(Request::fullUrl()).'&foreign_key=' |
| 250 | 250 | .$module['foreign_key'].'&label='.urlencode($module['label']); |
| 251 | 251 | } |