Skip to content

Commit 0df673a

Browse files
Fix styling
1 parent 4471c11 commit 0df673a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/core/src/Traits/Taxonomy/HasResourceTaxonomy.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ protected static function createTaxonomyField(string $taxonomy, array $settings,
6363
$locale => [
6464
'title' => $data['title'],
6565
'slug' => $data['slug'],
66-
]
66+
],
6767
];
6868

6969
$newTaxonomy = app($modelClass)::createWithTranslations([], $translations);
@@ -93,7 +93,8 @@ protected static function createTaxonomyField(string $taxonomy, array $settings,
9393
->mapWithKeys(function ($item) {
9494
$locale = request()->query('lang', app()->getLocale());
9595
$translation = $item->translate($locale) ?? $item->translate(app()->getLocale());
96-
return [$item->id => $translation ? $translation->title : 'ID: ' . $item->id];
96+
97+
return [$item->id => $translation ? $translation->title : 'ID: '.$item->id];
9798
})
9899
->toArray()
99100
)
@@ -108,7 +109,8 @@ protected static function createTaxonomyField(string $taxonomy, array $settings,
108109
->mapWithKeys(function ($item) {
109110
$locale = app()->getLocale();
110111
$translation = $item->translate($locale);
111-
return [$item->id => $translation ? $translation->title : 'ID: ' . $item->id];
112+
113+
return [$item->id => $translation ? $translation->title : 'ID: '.$item->id];
112114
})
113115
->toArray()
114116
)

0 commit comments

Comments
 (0)