Test Setup Failed
Push — master ( 86fe89...08c101 )
by Ben
06:58
created
src/Fields/Types/MediaField.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
         // We assume the default
57 57
         $disk = $this->getStorageDisk() ?: config('filesystems.default');
58 58
 
59
-        $fileSettings = config('filesystems.disks.'. $disk);
59
+        $fileSettings = config('filesystems.disks.'.$disk);
60 60
 
61 61
         return (isset($fileSettings['visibility']) && $fileSettings['visibility'] == "private") ? false : true;
62 62
     }
Please login to merge, or discard this patch.
src/Fields/Types/FileField.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     {
24 24
         return (new static(new FieldType(FieldType::FILE), $key))
25 25
             ->locales([config('app.fallback_locale', 'nl')])
26
-            ->valueResolver(function ($model = null, $locale = null, FileField $field) {
26
+            ->valueResolver(function($model = null, $locale = null, FileField $field) {
27 27
                 return $field->getMedia($model, $locale);
28 28
             });
29 29
     }
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         $files = [];
38 38
         $locale = $locale ?? app()->getLocale();
39 39
 
40
-        $assets = $model->assetRelation->where('pivot.type', $this->getKey())->filter(function ($asset) use ($locale) {
40
+        $assets = $model->assetRelation->where('pivot.type', $this->getKey())->filter(function($asset) use ($locale) {
41 41
             return $asset->pivot->locale == $locale;
42 42
         })->sortBy('pivot.order');
43 43
 
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
                 : '';
54 54
 
55 55
             // If the conversions haven't run yet, we'll use the original image until they are uploaded
56
-            if($this->isStoredOnPublicDisk() && !file_exists(public_path($thumbUrl))) {
56
+            if ($this->isStoredOnPublicDisk() && !file_exists(public_path($thumbUrl))) {
57 57
                 $thumbUrl = $asset->url();
58 58
             }
59 59
 
Please login to merge, or discard this patch.