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
Push — master ( 124047...66fbd0 )
by Freek
01:19
created
src/Certificate.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
         $certificate = $contents;
46 46
 
47 47
         // If we are missing the pem certificate header, try to convert it to a pem format first
48
-        if (! empty($contents) && strpos($contents, '-----BEGIN CERTIFICATE-----') === false) {
48
+        if (!empty($contents) && strpos($contents, '-----BEGIN CERTIFICATE-----') === false) {
49 49
             // Extract from either a PKCS#7 format or DER formatted contents
50 50
             $certificate = self::convertPkcs72Pem($contents) ?? self::convertDer2Pem($contents);
51 51
         }
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
         // Only allow for parent certificates to be read from HTTP and HTTPS URLs to 
87 87
         // prevent local file inclusion vulnerabilities
88 88
         $scheme = parse_url($url, PHP_URL_SCHEME);
89
-        if (! in_array($scheme, ['http', 'https'])) {
89
+        if (!in_array($scheme, ['http', 'https'])) {
90 90
             throw CouldNotLoadCertificate::invalidCertificateUrl($url);
91 91
         }
92 92
 
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 
96 96
     public function hasParentInTrustChain(): bool
97 97
     {
98
-        return ! $this->getParentCertificateUrl() == '';
98
+        return !$this->getParentCertificateUrl() == '';
99 99
     }
100 100
 
101 101
     public function getContents(): string
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 
108 108
     protected function guardAgainstInvalidContents(string $content, string $original)
109 109
     {
110
-        if (! (new X509())->loadX509($content)) {
110
+        if (!(new X509())->loadX509($content)) {
111 111
             throw CouldNotCreateCertificate::invalidContent($original);
112 112
         }
113 113
     }
Please login to merge, or discard this patch.