chore: remove isDeleted check in orderDomain

This commit is contained in:
Maël Gangloff
2024-10-06 20:37:56 +02:00
parent 483f33b0e1
commit 37cd4edcce
6 changed files with 10 additions and 20 deletions

View File

@@ -35,10 +35,6 @@ class AutodnsProvider extends AbstractProvider
*/
public function orderDomain(Domain $domain, bool $dryRun = false): void
{
if (!$domain->getDeleted()) {
throw new \InvalidArgumentException('The domain name still appears in the WHOIS database');
}
$ldhName = $domain->getLdhName();
if (!$ldhName) {
throw new \InvalidArgumentException('Domain name cannot be null');

View File

@@ -34,10 +34,6 @@ class GandiProvider extends AbstractProvider
*/
public function orderDomain(Domain $domain, bool $dryRun = false): void
{
if (!$domain->getDeleted()) {
throw new \InvalidArgumentException('The domain name still appears in the WHOIS database');
}
$ldhName = $domain->getLdhName();
if (!$ldhName) {
throw new \InvalidArgumentException('Domain name cannot be null');

View File

@@ -53,10 +53,6 @@ class OvhProvider extends AbstractProvider
*/
public function orderDomain(Domain $domain, bool $dryRun = false): void
{
if (!$domain->getDeleted()) {
throw new \InvalidArgumentException('The domain name still appears in the WHOIS database');
}
$ldhName = $domain->getLdhName();
if (!$ldhName) {
throw new \InvalidArgumentException('Domain name cannot be null');