Skip to content

Commit 77c79af

Browse files
AzGasimgithub-actions[bot]
authored andcommitted
Fix styling
1 parent b78152f commit 77c79af

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
use Illuminate\Database\Eloquent\Builder;
1111
use Illuminate\Database\Eloquent\Model;
1212
use Illuminate\Support\Facades\DB;
13-
use Moox\Localization\Models\Localization;
1413
use Moox\Category\Moox\Entities\Categories\Category\Forms\TaxonomyCreateForm as CoreTaxonomyCreateForm;
1514
use Moox\Core\Services\TaxonomyService;
15+
use Moox\Localization\Models\Localization;
1616

1717
trait HasResourceTaxonomy
1818
{
@@ -335,6 +335,7 @@ protected static function getTaxonomyColumns(): array
335335
$translation = $entity->translations->firstWhere('locale', $currentLocale);
336336
if ($translation && $translation->title) {
337337
$labels[] = $translation->title;
338+
338339
continue;
339340
}
340341

packages/localization/src/Models/Localization.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,11 @@ public function getDisplayNameAttribute(): string
128128
$countryName = $country->common_name; // Default fallback
129129

130130
if ($useCountryTranslations && $country->translations) {
131-
$currentLanguageAlpha3 = request()->get('lang') ?
132-
StaticLanguage::where('alpha2', substr(request()->get('lang'), 0, 2))->first()?->alpha3_b :
131+
$currentLanguageAlpha3 = request()->get('lang') ?
132+
StaticLanguage::where('alpha2', substr(request()->get('lang'), 0, 2))->first()?->alpha3_b :
133133
null;
134-
135-
if (!$currentLanguageAlpha3) {
134+
135+
if (! $currentLanguageAlpha3) {
136136
$currentLanguageAlpha3 = $this->language->alpha3_b;
137137
}
138138

0 commit comments

Comments
 (0)