Completed
Push — master ( b04d72...52d636 )
by Jonathan
11:25
created
resources/views/modules/default/uitypes/detail/file.blade.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
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">
Please login to merge, or discard this patch.
resources/views/modules/default/uitypes/edit/file.blade.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
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">
Please login to merge, or discard this patch.
app/Http/Controllers/Core/DownloadController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -35,8 +35,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.