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.
Test Failed
Pull Request — master (#1)
by
unknown
05:38
created
src/Response.php 1 patch
Braces   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -54,10 +54,11 @@
 block discarded – undo
54 54
             $headers = explode(PHP_EOL, $headers);
55 55
             array_shift($headers); // HTTP HEADER
56 56
             foreach($headers as $h) {
57
-                if(false !== strpos($h, ':'))
58
-                    list($k, $v) = explode(':', $h, 2);
59
-                else
60
-                    list($k, $v) = array($h,'');
57
+                if(false !== strpos($h, ':')) {
58
+                                    list($k, $v) = explode(':', $h, 2);
59
+                } else {
60
+                                    list($k, $v) = array($h,'');
61
+                }
61 62
 
62 63
                 $this->header[trim($k)] = trim($v);
63 64
             }
Please login to merge, or discard this patch.
src/Request.php 1 patch
Braces   +9 added lines, -4 removed lines patch added patch discarded remove patch
@@ -152,7 +152,9 @@  discard block
 block discarded – undo
152 152
     }
153 153
     public function mime($mime)
154 154
     {
155
-        if (empty($mime)) return $this;
155
+        if (empty($mime)) {
156
+        	return $this;
157
+        }
156 158
         $this->content_type = $this->expected_type = Mime::getFullMime($mime);
157 159
         if ($this->isUpload()) {
158 160
             $this->neverSerializePayload();
@@ -182,7 +184,9 @@  discard block
 block discarded – undo
182 184
     }
183 185
     public function expects($mime)
184 186
     {
185
-        if (empty($mime)) return $this;
187
+        if (empty($mime)) {
188
+        	return $this;
189
+        }
186 190
         $this->expected_type = Mime::getFullMime($mime);
187 191
         return $this;
188 192
     }
@@ -287,8 +291,9 @@  discard block
 block discarded – undo
287 291
      */
288 292
     public function send()
289 293
     {
290
-        if (!$this->hasInitialized)
291
-            $this->applyOptions();
294
+        if (!$this->hasInitialized) {
295
+                    $this->applyOptions();
296
+        }
292 297
         $response = $this->makeResponse();
293 298
         if ($this->endCallback) {
294 299
             $func = $this->endCallback;
Please login to merge, or discard this patch.
src/JsonTrait.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,9 @@  discard block
 block discarded – undo
51 51
     public function unJson($body)
52 52
     {
53 53
         $parsed = json_decode($body, true);
54
-        if(json_last_error() !== JSON_ERROR_NONE)throw new UnexpectedResponseException('parsing json occurs error: '.  self::jsonLastErrorMsg() . ', raw body: ' .$body  );
54
+        if(json_last_error() !== JSON_ERROR_NONE) {
55
+        	throw new UnexpectedResponseException('parsing json occurs error: '.  self::jsonLastErrorMsg() . ', raw body: ' .$body  );
56
+        }
55 57
         return $parsed;
56 58
     }
57 59
 
@@ -59,7 +61,9 @@  discard block
 block discarded – undo
59 61
      * @return string
60 62
      */
61 63
     private static function jsonLastErrorMsg(){
62
-        if(function_exists('json_last_error_msg')) return json_last_error_msg();
64
+        if(function_exists('json_last_error_msg')) {
65
+        	return json_last_error_msg();
66
+        }
63 67
         switch (json_last_error()) {
64 68
             case JSON_ERROR_NONE:
65 69
                 return ' - No errors';
Please login to merge, or discard this patch.