@@ -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="ellipsis"> |
@@ -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"> |
@@ -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 | |