From 24d21fbc887a28295a054c0706c38b1bd0fb58b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Gangloff?= Date: Sun, 14 Jul 2024 00:06:58 +0200 Subject: [PATCH] chore: rename registerEntity --- src/Service/RDAPService.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Service/RDAPService.php b/src/Service/RDAPService.php index 4d9bd75..5e71c1f 100644 --- a/src/Service/RDAPService.php +++ b/src/Service/RDAPService.php @@ -81,7 +81,7 @@ class RDAPService foreach ($res['entities'] as $rdapEntity) { if (!array_key_exists('handle', $rdapEntity)) continue; - $entity = $this->processEntity($rdapEntity); + $entity = $this->registerEntity($rdapEntity); $this->em->persist($entity); $this->em->flush(); @@ -119,7 +119,7 @@ class RDAPService foreach ($rdapNameserver['entities'] as $rdapEntity) { if (!array_key_exists('handle', $rdapEntity)) continue; - $entity = $this->processEntity($rdapEntity); + $entity = $this->registerEntity($rdapEntity); $this->em->persist($entity); $this->em->flush(); @@ -168,7 +168,7 @@ class RDAPService return strtolower(substr($domain, $lastDotPosition + 1)); } - private function processEntity(array $rdapEntity): Entity + private function registerEntity(array $rdapEntity): Entity { $entity = $this->entityRepository->findOneBy([ "handle" => $rdapEntity['handle']