Skip to content

Commit 88b4f7d

Browse files
refactor(rector): apply safe modernizations in CrlMapper
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent e68acc1 commit 88b4f7d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/Db/CrlMapper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ public function getRevokedCertificates(string $instanceId = '', int $generation
154154
}
155155

156156
public function isInvalidAt(string $serialNumber, ?DateTime $checkDate = null): bool {
157-
$checkDate = $checkDate ?? new DateTime();
157+
$checkDate ??= new DateTime();
158158

159159
try {
160160
$certificate = $this->findBySerialNumber($serialNumber);
@@ -174,7 +174,7 @@ public function isInvalidAt(string $serialNumber, ?DateTime $checkDate = null):
174174
}
175175

176176
public function cleanupExpiredCertificates(?DateTime $before = null): int {
177-
$before = $before ?? new DateTime('-1 year');
177+
$before ??= new DateTime('-1 year');
178178

179179
$qb = $this->db->getQueryBuilder();
180180

0 commit comments

Comments
 (0)