@@ -35,8 +35,8 @@ discard block |
||
35 | 35 | |
36 | 36 | // Get file data from request |
37 | 37 | $fileData = $this->getFileDataFromRequest(); |
38 | - $fileName = $fileData['name']; |
|
39 | - $filePath = $fileData['path']; |
|
38 | + $fileName = $fileData[ 'name' ]; |
|
39 | + $filePath = $fileData[ 'path' ]; |
|
40 | 40 | |
41 | 41 | // Check if file exists |
42 | 42 | if (!Storage::exists($filePath)) { |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | $fileName = null; |
58 | 58 | $filePath = null; |
59 | 59 | |
60 | - $recordId = (int) request('id'); |
|
60 | + $recordId = (int)request('id'); |
|
61 | 61 | $fieldColumn = request('field'); |
62 | 62 | |
63 | 63 | // Get record |
@@ -70,8 +70,8 @@ discard block |
||
70 | 70 | $fileParts = explode(';', $fileData); |
71 | 71 | |
72 | 72 | if (count($fileParts) === 2) { |
73 | - $fileName = $fileParts[0]; |
|
74 | - $filePath = $fileParts[1]; |
|
73 | + $fileName = $fileParts[ 0 ]; |
|
74 | + $filePath = $fileParts[ 1 ]; |
|
75 | 75 | } |
76 | 76 | } |
77 | 77 |
@@ -22,7 +22,7 @@ |
||
22 | 22 | @if ($value) |
23 | 23 | <?php |
24 | 24 | $valueParts = explode(';', $value); |
25 | - $fileName = $valueParts[0]; |
|
25 | + $fileName = $valueParts[ 0 ]; |
|
26 | 26 | ?> |
27 | 27 | <div class="input-field current-file"> |
28 | 28 | <div class="file-container"> |
@@ -6,7 +6,7 @@ |
||
6 | 6 | <?php |
7 | 7 | $value = $field->uitype->getFormattedValueToDisplay($field, $record); |
8 | 8 | $valueParts = explode(';', $value); |
9 | - $fileName = $valueParts[0]; |
|
9 | + $fileName = $valueParts[ 0 ]; |
|
10 | 10 | ?> |
11 | 11 | @if (count($valueParts) === 2) |
12 | 12 | <div class="truncate"> |
@@ -95,8 +95,8 @@ |
||
95 | 95 | <div class="hide-on-small-only hide-on-med-only"> |
96 | 96 | <?php |
97 | 97 | $searchValue = null; |
98 | - if ($selectedFilter && !empty($selectedFilter->conditions->search->{$column['name']})) { |
|
99 | - $searchValue = $selectedFilter->conditions->search->{$column['name']}; |
|
98 | + if ($selectedFilter && !empty($selectedFilter->conditions->search->{$column[ 'name' ]})) { |
|
99 | + $searchValue = $selectedFilter->conditions->search->{$column[ 'name' ]}; |
|
100 | 100 | } |
101 | 101 | |
102 | 102 | // If a special template exists, use it. Else use the generic template |
@@ -29,8 +29,8 @@ |
||
29 | 29 | <div class="search hide-on-small-only hide-on-med-only hide"> |
30 | 30 | <?php |
31 | 31 | $searchValue = null; |
32 | - if (!empty($selectedFilter) && !empty($selectedFilter->conditions->search->{$column['name']})) { |
|
33 | - $searchValue = $selectedFilter->conditions->search->{$column['name']}; |
|
32 | + if (!empty($selectedFilter) && !empty($selectedFilter->conditions->search->{$column[ 'name' ]})) { |
|
33 | + $searchValue = $selectedFilter->conditions->search->{$column[ 'name' ]}; |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | // If a special template exists, use it. Else use the generic template |
@@ -89,7 +89,7 @@ |
||
89 | 89 | // Related model |
90 | 90 | $relatedModel = new $relatedList->relatedModule->model_class; |
91 | 91 | |
92 | - $relations->getCollection()->transform(function ($relation) use ($relatedModel) { |
|
92 | + $relations->getCollection()->transform(function($relation) use ($relatedModel) { |
|
93 | 93 | $record = $relatedModel::find($relation->related_record_id); |
94 | 94 | $record->relation_id = $relation->id; // Add relation id |
95 | 95 |
@@ -87,8 +87,8 @@ |
||
87 | 87 | */ |
88 | 88 | public function addConditionToSearchQuery(Builder $query, Field $field, $value) : Builder |
89 | 89 | { |
90 | - $query->where(function ($query) use($field, $value) { |
|
91 | - foreach ((array) $value as $_value) { |
|
90 | + $query->where(function($query) use($field, $value) { |
|
91 | + foreach ((array)$value as $_value) { |
|
92 | 92 | $formattedValue = $this->getFormattedValueToSearch($_value); |
93 | 93 | $query = $query->orWhere($field->column, 'like', $formattedValue); |
94 | 94 | } |
@@ -126,8 +126,8 @@ |
||
126 | 126 | */ |
127 | 127 | public function addConditionToSearchQuery(Builder $query, Field $field, $value) : Builder |
128 | 128 | { |
129 | - $query->where(function ($query) use($field, $value) { |
|
130 | - foreach ((array) $value as $_value) { |
|
129 | + $query->where(function($query) use($field, $value) { |
|
130 | + foreach ((array)$value as $_value) { |
|
131 | 131 | $query = $query->orWhere($field->column, '=', $_value); |
132 | 132 | } |
133 | 133 | }); |
@@ -87,8 +87,8 @@ |
||
87 | 87 | */ |
88 | 88 | public function addConditionToSearchQuery(Builder $query, Field $field, $value) : Builder |
89 | 89 | { |
90 | - $query->where(function ($query) use($field, $value) { |
|
91 | - foreach ((array) $value as $_value) { |
|
90 | + $query->where(function($query) use($field, $value) { |
|
91 | + foreach ((array)$value as $_value) { |
|
92 | 92 | $formattedValue = $this->getFormattedValueToSearch($_value); |
93 | 93 | $query = $query->orWhere($field->column, $formattedValue); |
94 | 94 | } |