mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-27 15:18:23 +00:00
chore: reformat code
This commit is contained in:
parent
0657891b8d
commit
a94a775ee6
@ -232,18 +232,18 @@ 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;
|
||||||
}
|
}
|
||||||
|
|
||||||
$event = $this->domainEventRepository->findOneBy([
|
$event = $this->domainEventRepository->findOneBy([
|
||||||
'action' => $rdapEvent['eventAction'],
|
'action' => $rdapEvent['eventAction'],
|
||||||
'date' => new \DateTimeImmutable($rdapEvent['eventDate']),
|
'date' => new \DateTimeImmutable($rdapEvent['eventDate']),
|
||||||
'domain' => $domain,
|
'domain' => $domain,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
if (null === $event) {
|
if (null === $event) {
|
||||||
$event = new DomainEvent();
|
$event = new DomainEvent();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user