@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | public function __construct(string $contents) |
44 | 44 | { |
45 | 45 | // If we are missing the pem certificate header, try to convert it to a pem format first |
46 | - if (! empty($contents) && strpos($contents, '-----BEGIN CERTIFICATE-----') === false) { |
|
46 | + if (!empty($contents) && strpos($contents, '-----BEGIN CERTIFICATE-----') === false) { |
|
47 | 47 | // Extract from either a PKCS#7 format or DER formatted contents |
48 | 48 | $contents = self::convertPkcs72Pem($contents) ?? self::convertDer2Pem($contents); |
49 | 49 | } |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | |
87 | 87 | public function hasParentInTrustChain(): bool |
88 | 88 | { |
89 | - return ! $this->getParentCertificateUrl() == ''; |
|
89 | + return !$this->getParentCertificateUrl() == ''; |
|
90 | 90 | } |
91 | 91 | |
92 | 92 | public function getContents(): string |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | |
99 | 99 | protected function guardAgainstInvalidContents(string $content) |
100 | 100 | { |
101 | - if (! (new X509())->loadX509($content)) { |
|
101 | + if (!(new X509())->loadX509($content)) { |
|
102 | 102 | throw CouldNotCreateCertificate::invalidContent($content); |
103 | 103 | } |
104 | 104 | } |