Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
stepanenko3 committed May 6, 2024
1 parent f8de507 commit f0281c9
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/Checks/SslCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,6 @@ public function domain(
return $this;
}

private function buildMetaData(
SslCertificate $certificate,
): array {
return [
'domain' => $certificate->getDomain(),
'issuer' => $certificate->getIssuer(),
'is_valid' => $certificate->isValid(),
'expiration_date' => $certificate->expirationDate()->diffForHumans(),
'expiration_date_in_days' => $certificate->expirationDate()->diffInDays(),
];
}

public function run(): Result
{
try {
Expand Down Expand Up @@ -70,4 +58,16 @@ public function getName(): string
->append('_' . $this->domain)
->tostring();
}

private function buildMetaData(
SslCertificate $certificate,
): array {
return [
'domain' => $certificate->getDomain(),
'issuer' => $certificate->getIssuer(),
'is_valid' => $certificate->isValid(),
'expiration_date' => $certificate->expirationDate()->diffForHumans(),
'expiration_date_in_days' => $certificate->expirationDate()->diffInDays(),
];
}
}

0 comments on commit f0281c9

Please sign in to comment.