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 ( ca5817...c44fbe )
by Dirk
05:48 queued 03:00
created
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.
src/Pinterest/Models/Collection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
         // Create class path
68 68
         $this->model = ucfirst(strtolower($model));
69 69
 
70
-        if (!class_exists("\\DirkGroenen\\Pinterest\\Models\\" . $this->model)) {
70
+        if (!class_exists("\\DirkGroenen\\Pinterest\\Models\\".$this->model)) {
71 71
             throw new InvalidModelException;
72 72
         }
73 73
 
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
         $modelcollection = [];
117 117
 
118 118
         foreach ($items as $item) {
119
-            $class = new \ReflectionClass("\\DirkGroenen\\Pinterest\\Models\\" . $this->model);
119
+            $class = new \ReflectionClass("\\DirkGroenen\\Pinterest\\Models\\".$this->model);
120 120
             $modelcollection[] = $class->newInstanceArgs([$this->master, $item]);
121 121
         }
122 122
 
Please login to merge, or discard this patch.
src/Pinterest/Pinterest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
     public function __get($endpoint)
77 77
     {
78 78
         $endpoint = strtolower($endpoint);
79
-        $class = "\\DirkGroenen\\Pinterest\\Endpoints\\" . ucfirst($endpoint);
79
+        $class = "\\DirkGroenen\\Pinterest\\Endpoints\\".ucfirst($endpoint);
80 80
 
81 81
         // Check if an instance has already been initiated
82 82
         if (!isset($this->cachedEndpoints[$endpoint])) {
Please login to merge, or discard this patch.
autoload.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
     $prefix = 'DirkGroenen\\Pinterest\\';
16 16
 
17 17
     // base directory for the namespace prefix
18
-    $base_dir = __DIR__ . '/src/Pinterest/';
18
+    $base_dir = __DIR__.'/src/Pinterest/';
19 19
 
20 20
     // does the class use the namespace prefix?
21 21
     $len = strlen($prefix);
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
     // replace the namespace prefix with the base directory, replace namespace
31 31
     // separators with directory separators in the relative class name, append
32 32
     // with .php
33
-    $file = $base_dir . str_replace('\\', '/', $relative_class) . '.php';
33
+    $file = $base_dir.str_replace('\\', '/', $relative_class).'.php';
34 34
 
35 35
     // if the file exists, require it
36 36
     if (file_exists($file)) {
Please login to merge, or discard this patch.
src/Pinterest/Transport/Request.php 1 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
     /**
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
         // Check if the access token needs to be added
157 157
         if ($this->access_token != null) {
158 158
             $headers = array_merge($headers, array(
159
-                "Authorization: Bearer " . $this->access_token,
159
+                "Authorization: Bearer ".$this->access_token,
160 160
                 //"Content-type: application/x-www-form-urlencoded; charset=UTF-8",
161 161
                 "Content-Type:multipart/form-data"
162 162
             ));
@@ -215,8 +215,8 @@  discard block
 block discarded – undo
215 215
         if ($response_data === false && !$ch->hasErrors()) {
216 216
             throw new CurlException("Error: Curl request failed")
217 217
         }
218
-        else if($ch->hasErrors()) {
219
-            throw new PinterestException('Error: execute() - cURL error: ' . $ch->getErrors(), $ch->getErrorNumber());
218
+        else if ($ch->hasErrors()) {
219
+            throw new PinterestException('Error: execute() - cURL error: '.$ch->getErrors(), $ch->getErrorNumber());
220 220
         }
221 221
 
222 222
         // Initiate the response
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
 
225 225
         // Check the response code
226 226
         if ($response->getResponseCode() >= 400) {
227
-            throw new PinterestException('Pinterest error (code: ' . $response->getResponseCode() . ') with message: ' . $response->getMessage(), $response->getResponseCode());
227
+            throw new PinterestException('Pinterest error (code: '.$response->getResponseCode().') with message: '.$response->getMessage(), $response->getResponseCode());
228 228
         }
229 229
 
230 230
         // Get headers from last request
Please login to merge, or discard this patch.