@@ -81,9 +81,9 @@ discard block |
||
81 | 81 | $savePageLength = $request->input('save_page_length'); |
82 | 82 | |
83 | 83 | // Optional data |
84 | - $data = []; |
|
84 | + $data = [ ]; |
|
85 | 85 | if ($savePageLength) { |
86 | - $data["length"] = $request->input('page_length'); |
|
86 | + $data[ "length" ] = $request->input('page_length'); |
|
87 | 87 | } |
88 | 88 | |
89 | 89 | $filter = Filter::firstOrNew([ |
@@ -240,7 +240,7 @@ discard block |
||
240 | 240 | if ($relatedList && $relatedList->method) { |
241 | 241 | // Related list method |
242 | 242 | $method = $relatedList->method; |
243 | - $recordIdsMethod = $method . 'RecordIds'; |
|
243 | + $recordIdsMethod = $method.'RecordIds'; |
|
244 | 244 | |
245 | 245 | // Get related records ids |
246 | 246 | $model = new $modelClass; |
@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | |
249 | 249 | // Add the record id itself to be filtered |
250 | 250 | if ($relatedList->related_module_id === $module->id && !empty($recordId) && !$filteredRecordIds->contains($recordId)) { |
251 | - $filteredRecordIds[] = (int)$recordId; |
|
251 | + $filteredRecordIds[ ] = (int)$recordId; |
|
252 | 252 | } |
253 | 253 | |
254 | 254 | // Make the query |
@@ -294,7 +294,7 @@ |
||
294 | 294 | * @param string $type |
295 | 295 | * @return array |
296 | 296 | */ |
297 | - public function getDatatableColumns(Module $module, $filterId=null, $type='list'): array |
|
297 | + public function getDatatableColumns(Module $module, $filterId = null, $type = 'list'): array |
|
298 | 298 | { |
299 | 299 | $columns = [ ]; |
300 | 300 |
@@ -91,8 +91,8 @@ |
||
91 | 91 | {{ uctrans('field.'.$column['name'], $module) }} |
92 | 92 | <?php |
93 | 93 | $searchValue = null; |
94 | - if ($selectedFilter && !empty($selectedFilter->conditions->search->{$column['name']})) { |
|
95 | - $searchValue = $selectedFilter->conditions->search->{$column['name']}; |
|
94 | + if ($selectedFilter && !empty($selectedFilter->conditions->search->{$column[ 'name' ]})) { |
|
95 | + $searchValue = $selectedFilter->conditions->search->{$column[ 'name' ]}; |
|
96 | 96 | } |
97 | 97 | |
98 | 98 | // If a special template exists, use it. Else use the generic template |