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 — master ( 218f4f...2efa45 )
by Cees-Jan
03:06 queued 59s
created
src/ResponseCacheMiddleware.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace WyriHaximus\React\Http\Middleware;
4 4
 
@@ -65,20 +65,20 @@  discard block
 block discarded – undo
65 65
         $key = $uri;
66 66
         $query = $request->getUri()->getQuery();
67 67
         if (strlen($query) > 0 && $this->queryInKey($uri)) {
68
-            $key .= '?' . $query;
68
+            $key .= '?'.$query;
69 69
         }
70 70
 
71
-        return $this->cache->get($key)->then(function ($json) {
71
+        return $this->cache->get($key)->then(function($json) {
72 72
             $cachedResponse = json_decode($json);
73 73
 
74
-            return new Response($cachedResponse->code, (array)$cachedResponse->headers, stream_for($cachedResponse->body));
75
-        }, function () use ($next, $request, $key) {
76
-            return resolve($next($request))->then(function (ResponseInterface $response) use ($key) {
74
+            return new Response($cachedResponse->code, (array) $cachedResponse->headers, stream_for($cachedResponse->body));
75
+        }, function() use ($next, $request, $key) {
76
+            return resolve($next($request))->then(function(ResponseInterface $response) use ($key) {
77 77
                 if ($response->getBody() instanceof HttpBodyStream) {
78 78
                     return $response;
79 79
                 }
80 80
 
81
-                $body = (string)$response->getBody();
81
+                $body = (string) $response->getBody();
82 82
                 $headers = [];
83 83
                 foreach ($this->headers as $header) {
84 84
                     if (!$response->hasHeader($header)) {
Please login to merge, or discard this patch.