@@ -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 | } |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | public function handle($result, $table) |
| 24 | 24 | { |
| 25 | 25 | $orderBy = $this->ctrl->orderby; |
| 26 | - if (! $orderBy) { |
|
| 26 | + if (!$orderBy) { |
|
| 27 | 27 | $result->orderby($table.'.'.$this->ctrl->primaryKey, 'desc'); |
| 28 | 28 | return; |
| 29 | 29 | } |
@@ -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")."%"); |