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.
Passed
Push — development ( c44fbe...de6b6f )
by Dirk
04:53
created
src/Pinterest/Auth/PinterestOAuth.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,6 @@
 block discarded – undo
11 11
 namespace DirkGroenen\Pinterest\Auth;
12 12
 
13 13
 use DirkGroenen\Pinterest\Transport\Request;
14
-use DirkGroenen\Pinterest\Exceptions\PinterestException;
15 14
 
16 15
 class PinterestOAuth {
17 16
 
Please login to merge, or discard this patch.
src/Pinterest/Transport/Request.php 2 patches
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -188,8 +188,7 @@  discard block
 block discarded – undo
188 188
 
189 189
                 if (!class_exists('\CURLFile') && defined('CURLOPT_SAFE_UPLOAD')) {
190 190
                     $ch->setOption(CURLOPT_SAFE_UPLOAD, false);
191
-                }
192
-                elseif (class_exists('\CURLFile') && defined('CURLOPT_SAFE_UPLOAD')) {
191
+                } elseif (class_exists('\CURLFile') && defined('CURLOPT_SAFE_UPLOAD')) {
193 192
                     $ch->setOption(CURLOPT_SAFE_UPLOAD, true);
194 193
                 }
195 194
 
@@ -214,8 +213,7 @@  discard block
 block discarded – undo
214 213
 
215 214
         if ($response_data === false && !$ch->hasErrors()) {
216 215
             throw new CurlException("Error: Curl request failed");
217
-        }
218
-        else if($ch->hasErrors()) {
216
+        } else if($ch->hasErrors()) {
219 217
             throw new PinterestException('Error: execute() - cURL error: ' . $ch->getErrors(), $ch->getErrorNumber());
220 218
         }
221 219
 
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
      */
109 109
     public function delete($endpoint, array $parameters = array())
110 110
     {
111
-        return $this->execute("DELETE", sprintf("%s%s", $this->host, $endpoint) . "/", $parameters);
111
+        return $this->execute("DELETE", sprintf("%s%s", $this->host, $endpoint)."/", $parameters);
112 112
     }
113 113
 
114 114
     /**
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
         // Check if the access token needs to be added
159 159
         if ($this->access_token != null) {
160 160
             $headers = array_merge($headers, array(
161
-                "Authorization: Bearer " . $this->access_token,
161
+                "Authorization: Bearer ".$this->access_token,
162 162
             ));
163 163
         }
164 164
 
@@ -221,8 +221,8 @@  discard block
 block discarded – undo
221 221
         if ($response_data === false && !$ch->hasErrors()) {
222 222
             throw new CurlException("Error: Curl request failed");
223 223
         }
224
-        else if($ch->hasErrors()) {
225
-            throw new PinterestException('Error: execute() - cURL error: ' . $ch->getErrors(), $ch->getErrorNumber());
224
+        else if ($ch->hasErrors()) {
225
+            throw new PinterestException('Error: execute() - cURL error: '.$ch->getErrors(), $ch->getErrorNumber());
226 226
         }
227 227
 
228 228
         // Initiate the response
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
 
231 231
         // Check the response code
232 232
         if ($response->getResponseCode() >= 400) {
233
-            throw new PinterestException('Pinterest error (code: ' . $response->getResponseCode() . ') with message: ' . $response->getMessage(), $response->getResponseCode());
233
+            throw new PinterestException('Pinterest error (code: '.$response->getResponseCode().') with message: '.$response->getMessage(), $response->getResponseCode());
234 234
         }
235 235
 
236 236
         // Get headers from last request
Please login to merge, or discard this patch.
src/Pinterest/Endpoints/Pins.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
             if (class_exists('\CURLFile')) {
60 60
                 $data["image"] = new \CURLFile($data['image']);
61 61
             } else {
62
-                $data["image"] = '@' . $data['image'];
62
+                $data["image"] = '@'.$data['image'];
63 63
             }
64 64
         }
65 65
 
Please login to merge, or discard this patch.