chore: code format

This commit is contained in:
Maël Gangloff
2025-09-10 00:11:05 +02:00
parent 477bf36893
commit 08ff41c3d0
4 changed files with 27 additions and 40 deletions

View File

@@ -41,7 +41,7 @@ class RegisterDomainCommand extends Command
protected function execute(InputInterface $input, OutputInterface $output): int
{
$io = new SymfonyStyle($input, $output);
$ldhName = RDAPService::convertToIdn($input->getArgument('domain'));
$ldhName = RDAPService::convertToIdn($input->getArgument('domain'));
$force = (bool) $input->getOption('force');
$notif = (bool) $input->getOption('notif');
$domain = $this->domainRepository->findOneBy(['ldhName' => $ldhName]);

View File

@@ -203,7 +203,7 @@ class RDAPService
throw new BadRequestException('Domain must contain at least one dot');
}
$tld = self::convertToIdn((substr($domain, $lastDotPosition + 1)));
$tld = self::convertToIdn(substr($domain, $lastDotPosition + 1));
$tldEntity = $this->tldRepository->findOneBy(['tld' => $tld]);
if (null === $tldEntity) {