@@ -56,7 +56,7 @@ |
||
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 | } |
@@ -23,7 +23,7 @@ discard block |
||
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 |
||
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 |
||
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 |