update fix deadcode, security
This commit is contained in:
@@ -234,36 +234,6 @@ class ServerService
|
||||
return $result;
|
||||
}
|
||||
|
||||
public function updateDomain(int $pleskDomainId, array $data = []): array|false
|
||||
{
|
||||
if (empty($pleskDomainId) || empty($data)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!$this->server) {
|
||||
$this->server = $this->serverRepository->find($data['dns_manager_server_id']);
|
||||
}
|
||||
|
||||
$result = $this->pleskDomainService->updateDomain($this->server, $pleskDomainId, $data);
|
||||
|
||||
$this->resetServer();
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
public function removeDomain(int $pleskDomainId): bool
|
||||
{
|
||||
if (empty($this->server)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$result = $this->pleskDomainService->removeDomain($this->server, $pleskDomainId);
|
||||
|
||||
$this->resetServer();
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
public function addServerById(int $serverId): bool
|
||||
{
|
||||
$this->server = $this->serverRepository->find($serverId);
|
||||
|
||||
Reference in New Issue
Block a user