@@ -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 | } |