mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-18 02:05:36 +00:00
chore: reformat code
This commit is contained in:
parent
0657891b8d
commit
a94a775ee6
@ -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();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user