diff --git a/src/SslCertificate.php b/src/SslCertificate.php index ad2b41f..bc4ece3 100644 --- a/src/SslCertificate.php +++ b/src/SslCertificate.php @@ -139,9 +139,9 @@ public function getPublicKeyAlgorithm(): string return match($this->publicKeyDetail['type'] ?? -1) { OPENSSL_KEYTYPE_RSA => 'RSA', OPENSSL_KEYTYPE_DSA => 'DSA', - OPENSSL_KEYTYPE_DH => 'DH', - OPENSSL_KEYTYPE_EC => 'EC', - default => 'Unknown', + OPENSSL_KEYTYPE_DH => 'DH', + OPENSSL_KEYTYPE_EC => 'EC', + default => 'Unknown', }; } diff --git a/tests/SslCertificateTest.php b/tests/SslCertificateTest.php index 2fabf6a..a818428 100644 --- a/tests/SslCertificateTest.php +++ b/tests/SslCertificateTest.php @@ -51,7 +51,7 @@ ->expect(fn () => $this->certificate->getPublicKeySize()) ->toEqual(0); - it('can determine the additional domains', function () { +it('can determine the additional domains', function () { expect($this->certificate->getAdditionalDomains())->toHaveCount(3) ->and($this->certificate->getAdditionalDomains()[0])->toEqual('spatie.be') ->and($this->certificate->getAdditionalDomains()[1])->toEqual('www.spatie.be')