Optimierung 5.3: toten portalBadgeColor()-Helfer entfernt

In companies/index, companies/show und contacts/index war die private
Methode portalBadgeColor() definiert, aber nirgends aufgerufen (kein
Aufruf im Blade-Markup oder PHP). Entfernt; in companies/show wird damit
auch der Portal-Import ungenutzt und faellt weg.

Klaert den im Wiedereinstieg-Plan offenen Punkt: keine Portal::badgeColor()-
Zentralisierung noetig, da es keine echten Call-Sites gab.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Kevin Adametz 2026-06-30 10:56:50 +00:00
parent 63071a0a3e
commit 055fd5c47f
3 changed files with 0 additions and 31 deletions

View file

@ -201,16 +201,6 @@ new #[Layout('components.layouts.app'), Title('Firmen')] class extends Component
$this->resetPage();
}
private function portalBadgeColor(?Portal $portal): string
{
return match ($portal) {
Portal::Presseecho => 'blue',
Portal::Businessportal24 => 'purple',
Portal::Both => 'zinc',
default => 'zinc',
};
}
private function userLookupResults()
{
$term = trim($this->userLookup);

View file

@ -1,6 +1,5 @@
<?php
use App\Enums\Portal;
use App\Models\Company;
use App\Models\Contact;
use Livewire\Attributes\Layout;
@ -175,16 +174,6 @@ new #[Layout('components.layouts.app'), Title('Firma anzeigen')] class extends C
'recentPressReleases' => $company->pressReleases,
];
}
private function portalBadgeColor(?Portal $portal): string
{
return match ($portal) {
Portal::Presseecho => 'blue',
Portal::Businessportal24 => 'purple',
Portal::Both => 'zinc',
default => 'zinc',
};
}
}; ?>
<div class="space-y-8">

View file

@ -363,16 +363,6 @@ new #[Layout('components.layouts.app'), Title('Kontakte')] class extends Compone
$this->notificationType = 'success';
$this->resetPage();
}
private function portalBadgeColor(?Portal $portal): string
{
return match ($portal) {
Portal::Presseecho => 'blue',
Portal::Businessportal24 => 'purple',
Portal::Both => 'zinc',
default => 'zinc',
};
}
}; ?>
<div class="space-y-8">