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 — development ( ac02f6...17a2df )
by Dirk
03:10
created
src/Pinterest/Transport/Request.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
      */
108 108
     public function delete($endpoint, array $parameters = array())
109 109
     {
110
-        return $this->execute("DELETE", sprintf("%s%s", $this->host, $endpoint) . "/", $parameters);
110
+        return $this->execute("DELETE", sprintf("%s%s", $this->host, $endpoint)."/", $parameters);
111 111
     }
112 112
 
113 113
     /**
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
         // Check if the access token needs to be added
156 156
         if ($this->access_token != null) {
157 157
             $headers = array_merge($headers, array(
158
-                "Authorization: Bearer " . $this->access_token,
158
+                "Authorization: Bearer ".$this->access_token,
159 159
                 //"Content-type: application/x-www-form-urlencoded; charset=UTF-8",
160 160
                 "Content-Type:multipart/form-data"
161 161
             ));
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
 
214 214
         // Check if we have a valid response
215 215
         if (!$response_data || $ch->hasErrors()) {
216
-            throw new PinterestException('Error: execute() - cURL error: ' . $ch->getErrors(), $ch->getErrorNumber());
216
+            throw new PinterestException('Error: execute() - cURL error: '.$ch->getErrors(), $ch->getErrorNumber());
217 217
         }
218 218
 
219 219
         // Initiate the response
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
 
222 222
         // Check the response code
223 223
         if ($response->getResponseCode() >= 400) {
224
-            throw new PinterestException('Pinterest error (code: ' . $response->getResponseCode() . ') with message: ' . $response->getMessage(), $response->getResponseCode());
224
+            throw new PinterestException('Pinterest error (code: '.$response->getResponseCode().') with message: '.$response->getMessage(), $response->getResponseCode());
225 225
         }
226 226
 
227 227
         // Get headers from last request
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -187,8 +187,7 @@
 block discarded – undo
187 187
 
188 188
                 if (!class_exists("\CURLFile") && defined('CURLOPT_SAFE_UPLOAD')) {
189 189
                     $ch->setOption(CURLOPT_SAFE_UPLOAD, false);
190
-                }
191
-                elseif (class_exists("\CURLFile") && defined('CURLOPT_SAFE_UPLOAD')) {
190
+                } elseif (class_exists("\CURLFile") && defined('CURLOPT_SAFE_UPLOAD')) {
192 191
                     $ch->setOption(CURLOPT_SAFE_UPLOAD, true);
193 192
                 }
194 193
 
Please login to merge, or discard this patch.