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 (#148)
by milkmeowo
05:24
created
src/Gateways/HuaweiGateway.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
      *
99 99
      * @param string $appKey
100 100
      * @param string $appSecret
101
-     * @return array
101
+     * @return string
102 102
      */
103 103
     protected function getHeaders($appKey, $appSecret)
104 104
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
     protected function getEndpoint(Config $config)
91 91
     {
92 92
         $endpoint = rtrim($config->get('endpoint', self::ENDPOINT_HOST), '/');
93
-        return $endpoint . self::ENDPOINT_URI;
93
+        return $endpoint.self::ENDPOINT_URI;
94 94
     }
95 95
 
96 96
     /**
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
     {
121 121
         $now = date('Y-m-d\TH:i:s\Z');
122 122
         $nonce = uniqid();
123
-        $passwordDigest = base64_encode(hash('sha256', ($nonce . $now . $appSecret)));
123
+        $passwordDigest = base64_encode(hash('sha256', ($nonce.$now.$appSecret)));
124 124
         return sprintf("UsernameToken Username=\"%s\",PasswordDigest=\"%s\",Nonce=\"%s\",Created=\"%s\"",
125 125
             $appKey, $passwordDigest, $nonce, $now);
126 126
     }
Please login to merge, or discard this patch.