chore: reformat code

This commit is contained in:
Maël Gangloff 2024-09-22 19:49:35 +02:00
parent 0657891b8d
commit a94a775ee6
No known key found for this signature in database
GPG Key ID: 11FDC81C24A7F629

View File

@ -232,18 +232,18 @@ readonly class RDAPService
$event->setDeleted(true);
}
if(!empty($res["events"])) {
if (array_key_exists('events', $res) && is_array($res['events'])) {
foreach ($res['events'] as $rdapEvent) {
if ($rdapEvent['eventAction'] === EventAction::LastUpdateOfRDAPDatabase->value) {
continue;
}
$event = $this->domainEventRepository->findOneBy([
'action' => $rdapEvent['eventAction'],
'date' => new \DateTimeImmutable($rdapEvent['eventDate']),
'domain' => $domain,
]);
if (null === $event) {
$event = new DomainEvent();
}