mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
chore: code format
This commit is contained in:
@@ -121,7 +121,9 @@ class Tld
|
||||
public function setTld(string $tld): static
|
||||
{
|
||||
$this->tld = RDAPService::convertToIdn($tld);
|
||||
if($this->tld === '') $this->tld = '.';
|
||||
if ('' === $this->tld) {
|
||||
$this->tld = '.';
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user