GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Pull Request — master (#30)
by Alex
02:28 queued 43s
created
src/Certificate.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.