@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | ->get(); |
| 52 | 52 | |
| 53 | 53 | // Order by |
| 54 | - $filterOrderBy = (array) $selectedFilter->order_by; |
|
| 54 | + $filterOrderBy = (array)$selectedFilter->order_by; |
|
| 55 | 55 | |
| 56 | 56 | return $this->autoView(compact('datatableColumns', 'filters', 'selectedFilter', 'filterOrderBy')); |
| 57 | 57 | } |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | if ($relatedList && $relatedList->method) { |
| 145 | 145 | // Related list method |
| 146 | 146 | $method = $relatedList->method; |
| 147 | - $recordIdsMethod = $method . 'RecordIds'; |
|
| 147 | + $recordIdsMethod = $method.'RecordIds'; |
|
| 148 | 148 | |
| 149 | 149 | // Get related records ids |
| 150 | 150 | $model = new $modelClass; |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | |
| 153 | 153 | // Add the record id itself to be filtered |
| 154 | 154 | if ($relatedList->related_module_id === $module->id && !empty($recordId) && !$filteredRecordIds->contains($recordId)) { |
| 155 | - $filteredRecordIds[] = (int)$recordId; |
|
| 155 | + $filteredRecordIds[ ] = (int)$recordId; |
|
| 156 | 156 | } |
| 157 | 157 | |
| 158 | 158 | // Make the quer |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | $records = $query->paginate($length); |
| 164 | 164 | } |
| 165 | 165 | |
| 166 | - $records->getCollection()->transform(function ($record) use ($domain, $module) { |
|
| 166 | + $records->getCollection()->transform(function($record) use ($domain, $module) { |
|
| 167 | 167 | foreach ($module->fields as $field) { |
| 168 | 168 | // If a special template exists, use it. Else use the generic template |
| 169 | 169 | $uitypeViewName = sprintf('uitypes.list.%s', $field->uitype->name); |
@@ -224,9 +224,9 @@ discard block |
||
| 224 | 224 | $savePageLength = $request->input('save_page_length'); |
| 225 | 225 | |
| 226 | 226 | // Optional data |
| 227 | - $data = []; |
|
| 227 | + $data = [ ]; |
|
| 228 | 228 | if ($savePageLength) { |
| 229 | - $data["length"] = $request->input('page_length'); |
|
| 229 | + $data[ "length" ] = $request->input('page_length'); |
|
| 230 | 230 | } |
| 231 | 231 | |
| 232 | 232 | $filter = Filter::firstOrNew([ |
@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | $value = $field->uitype->getFormattedValueToDisplay($field, $record); |
| 3 | 3 | $valueParts = explode(';', $value); |
| 4 | -$fileName = $valueParts[0]; |
|
| 4 | +$fileName = $valueParts[ 0 ]; |
|
| 5 | 5 | ?> |
| 6 | 6 | @if (count($valueParts) === 2) |
| 7 | 7 | <a href="{{ ucroute('uccello.download', $domain, $module, [ 'id' => $record->getKey(), 'field' => $field->column ]) }}" |