Skip to content

Commit ebb125f

Browse files
cklei-carlygithub-actions[bot]
authored andcommitted
Fix styling
1 parent 75b7145 commit ebb125f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Fields/Converters/FileConverter.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,17 @@ public function toDisplayValue(mixed $sourceValue, ?string $locale, ?string $fal
1111
$disk = $this->fieldTypeConfig->disk ?? config('filesystems.default');
1212
$directory = $this->fieldTypeConfig->directory;
1313

14-
1514
try {
1615
// Ensure is array
1716
if (! is_array($sourceValue)) {
1817
$sourceValue = array_filter([$sourceValue]);
1918
}
20-
19+
2120
// Pick value if is translatable
2221
if ($this->fieldTypeConfig->translatable) {
2322
$sourceValue = $sourceValue[$locale] ?? $sourceValue[$fallbackLocale] ?? [];
2423
}
25-
24+
2625
return collect($sourceValue)
2726
->map(fn ($path) => FileDto::fromArray([
2827
'path' => $path,

0 commit comments

Comments
 (0)