@@ -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 | |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | $thumbUrl = $asset->url('thumb'); |
48 | 48 | |
49 | 49 | // If the conversions haven't run yet, we'll use the original image until they are uploaded |
50 | - if(!file_exists(public_path($thumbUrl))) { |
|
50 | + if (!file_exists(public_path($thumbUrl))) { |
|
51 | 51 | $thumbUrl = $asset->url(); |
52 | 52 | } |
53 | 53 |