chore: reformat code

This commit is contained in:
Maël Gangloff
2024-09-22 19:49:35 +02:00
parent 0657891b8d
commit a94a775ee6

View File

@@ -232,7 +232,7 @@ readonly class RDAPService
$event->setDeleted(true); $event->setDeleted(true);
} }
if(!empty($res["events"])) { if (array_key_exists('events', $res) && is_array($res['events'])) {
foreach ($res['events'] as $rdapEvent) { foreach ($res['events'] as $rdapEvent) {
if ($rdapEvent['eventAction'] === EventAction::LastUpdateOfRDAPDatabase->value) { if ($rdapEvent['eventAction'] === EventAction::LastUpdateOfRDAPDatabase->value) {
continue; continue;