Test Setup Failed
Push — master ( d11592...29091d )
by Ben
05:52
created
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
 
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
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
 
Please login to merge, or discard this patch.