update fix deadcode, security
This commit is contained in:
@@ -86,15 +86,6 @@ class ModuleVmware extends Model
|
||||
return $this->belongsTo(\App\Models\Service::class, 'service_id');
|
||||
}
|
||||
|
||||
public function getStatus()
|
||||
{
|
||||
return match ($this->status) {
|
||||
1 => '<span class="badge bg-success">Active</span>',
|
||||
2 => '<span class="badge bg-secondary">Cancel</span>',
|
||||
default => '<span class="badge bg-danger">Pending</span>',
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* `virtual_machine_id`/`cpu`/`ram_mb` are only written when a service is
|
||||
* created directly against a known vCenter inventory row (admin "create
|
||||
|
||||
Reference in New Issue
Block a user