mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
Merge branch 'master' into feat/rss-feed
This commit is contained in:
@@ -794,7 +794,7 @@ readonly class RDAPService
|
|||||||
|
|
||||||
private function getTldType(string $tld): ?TldType
|
private function getTldType(string $tld): ?TldType
|
||||||
{
|
{
|
||||||
if (in_array($tld, self::ISO_TLD_EXCEPTION)) {
|
if (in_array(strtolower($tld), self::ISO_TLD_EXCEPTION)) {
|
||||||
return TldType::ccTLD;
|
return TldType::ccTLD;
|
||||||
}
|
}
|
||||||
if (in_array(strtolower($tld), self::INFRA_TLD)) {
|
if (in_array(strtolower($tld), self::INFRA_TLD)) {
|
||||||
@@ -844,8 +844,8 @@ readonly class RDAPService
|
|||||||
$gtTldEntity
|
$gtTldEntity
|
||||||
->setContractTerminated($gTld['contractTerminated'])
|
->setContractTerminated($gTld['contractTerminated'])
|
||||||
->setRegistryOperator($gTld['registryOperator'])
|
->setRegistryOperator($gTld['registryOperator'])
|
||||||
->setSpecification13($gTld['specification13'])
|
->setSpecification13($gTld['specification13']);
|
||||||
->setType(TldType::gTLD);
|
// NOTICE: sTLDs are listed in ICANN's gTLD list
|
||||||
|
|
||||||
if (null !== $gTld['removalDate']) {
|
if (null !== $gTld['removalDate']) {
|
||||||
$gtTldEntity->setRemovalDate(new \DateTimeImmutable($gTld['removalDate']));
|
$gtTldEntity->setRemovalDate(new \DateTimeImmutable($gTld['removalDate']));
|
||||||
|
|||||||
Reference in New Issue
Block a user