update fix deadcode, security
This commit is contained in:
@@ -24,15 +24,6 @@ class DnsServer extends Model
|
||||
'type',
|
||||
];
|
||||
|
||||
public function getStatus(): string
|
||||
{
|
||||
return match ($this->attributes['status']) {
|
||||
'activated' => '<span class="badge bg-success text-success-fg">Activated</span>',
|
||||
'Stopped' => '<span class="badge bg-danger text-danger-fg">Stopped</span>',
|
||||
default => '<span class="badge bg-secondary">Unknown</span>',
|
||||
};
|
||||
}
|
||||
|
||||
public function servesHosting(): bool
|
||||
{
|
||||
$type = $this->attributes['type'] ?? ServerType::DOMAIN->value;
|
||||
|
||||
Reference in New Issue
Block a user