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
Pull Request — 3.x (#2670)
by
unknown
01:44
created
Slim/Http/Uri.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -186,12 +186,12 @@  discard block
 block discarded – undo
186 186
             $host = $matches[1];
187 187
 
188 188
             if (isset($matches[2])) {
189
-                $port = (int) substr($matches[2], 1);
189
+                $port = (int)substr($matches[2], 1);
190 190
             }
191 191
         } else {
192 192
             $pos = strpos($host, ':');
193 193
             if ($pos !== false) {
194
-                $port = (int) substr($host, $pos + 1);
194
+                $port = (int)substr($host, $pos + 1);
195 195
                 $host = strstr($host, ':', true);
196 196
             }
197 197
         }
@@ -396,7 +396,7 @@  discard block
 block discarded – undo
396 396
     {
397 397
         return preg_replace_callback(
398 398
             '/(?:[^a-zA-Z0-9_\-\.~!\$&\'\(\)\*\+,;=]+|%(?![A-Fa-f0-9]{2}))/u',
399
-            function ($match) {
399
+            function($match) {
400 400
                 return rawurlencode($match[0]);
401 401
             },
402 402
             $query
@@ -641,7 +641,7 @@  discard block
 block discarded – undo
641 641
     {
642 642
         return preg_replace_callback(
643 643
             '/(?:[^a-zA-Z0-9_\-\.~:@&=\+\$,\/;%]+|%(?![A-Fa-f0-9]{2}))/',
644
-            function ($match) {
644
+            function($match) {
645 645
                 return rawurlencode($match[0]);
646 646
             },
647 647
             $path
@@ -714,7 +714,7 @@  discard block
 block discarded – undo
714 714
     {
715 715
         return preg_replace_callback(
716 716
             '/(?:[^a-zA-Z0-9_\-\.~!\$&\'\(\)\*\+,;=%:@\/\?]+|%(?![A-Fa-f0-9]{2}))/',
717
-            function ($match) {
717
+            function($match) {
718 718
                 return rawurlencode($match[0]);
719 719
             },
720 720
             $query
Please login to merge, or discard this patch.
Slim/App.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
      */
260 260
     public function redirect($from, $to, $status = 302)
261 261
     {
262
-        $handler = function ($request, ResponseInterface $response) use ($to, $status) {
262
+        $handler = function($request, ResponseInterface $response) use ($to, $status) {
263 263
             return $response->withHeader('Location', (string)$to)->withStatus($status);
264 264
         };
265 265
 
@@ -503,7 +503,7 @@  discard block
 block discarded – undo
503 503
         $router = $this->container->get('router');
504 504
 
505 505
         // If router hasn't been dispatched or the URI changed then dispatch
506
-        if (null === $routeInfo || ($routeInfo['request'] !== [$request->getMethod(), (string) $request->getUri()])) {
506
+        if (null === $routeInfo || ($routeInfo['request'] !== [$request->getMethod(), (string)$request->getUri()])) {
507 507
             $request = $this->dispatchRouterAndPrepareRoute($request, $router);
508 508
             $routeInfo = $request->getAttribute('routeInfo');
509 509
         }
@@ -595,7 +595,7 @@  discard block
 block discarded – undo
595 595
             $request = $request->withAttribute('route', $route);
596 596
         }
597 597
 
598
-        $routeInfo['request'] = [$request->getMethod(), (string) $request->getUri()];
598
+        $routeInfo['request'] = [$request->getMethod(), (string)$request->getUri()];
599 599
 
600 600
         return $request->withAttribute('routeInfo', $routeInfo);
601 601
     }
@@ -624,7 +624,7 @@  discard block
 block discarded – undo
624 624
             }
625 625
             $size = $response->getBody()->getSize();
626 626
             if ($size !== null && !$response->hasHeader('Content-Length')) {
627
-                $response = $response->withHeader('Content-Length', (string) $size);
627
+                $response = $response->withHeader('Content-Length', (string)$size);
628 628
             }
629 629
         }
630 630
 
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@
 block discarded – undo
130 130
             }
131 131
         }
132 132
 
133
-        throw new BadMethodCallException("Method $method is not a valid method");
133
+        throw new BadMethodCallException("method $method is not a valid method");
134 134
     }
135 135
 
136 136
     /********************************************************************************
Please login to merge, or discard this patch.
Slim/Http/Response.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -222,8 +222,8 @@
 block discarded – undo
222 222
     protected function filterStatus($status)
223 223
     {
224 224
         if (!is_integer($status) ||
225
-            $status<StatusCode::HTTP_CONTINUE ||
226
-            $status>StatusCode::HTTP_NETWORK_CONNECTION_TIMEOUT_ERROR
225
+            $status < StatusCode::HTTP_CONTINUE ||
226
+            $status > StatusCode::HTTP_NETWORK_CONNECTION_TIMEOUT_ERROR
227 227
         ) {
228 228
             throw new InvalidArgumentException('Invalid HTTP status code');
229 229
         }
Please login to merge, or discard this patch.
Slim/Http/StatusCode.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,12 +31,12 @@
 block discarded – undo
31 31
     const HTTP_SEE_OTHER = 303;
32 32
     const HTTP_NOT_MODIFIED = 304;
33 33
     const HTTP_USE_PROXY = 305;
34
-    const HTTP_UNUSED= 306;
34
+    const HTTP_UNUSED = 306;
35 35
     const HTTP_TEMPORARY_REDIRECT = 307;
36 36
     const HTTP_PERMANENT_REDIRECT = 308;
37 37
 
38 38
     const HTTP_BAD_REQUEST = 400;
39
-    const HTTP_UNAUTHORIZED  = 401;
39
+    const HTTP_UNAUTHORIZED = 401;
40 40
     const HTTP_PAYMENT_REQUIRED = 402;
41 41
     const HTTP_FORBIDDEN = 403;
42 42
     const HTTP_NOT_FOUND = 404;
Please login to merge, or discard this patch.
Slim/Http/UploadedFile.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
     {
86 86
         if (is_array($env['slim.files']) && $env->has('slim.files')) {
87 87
             return $env['slim.files'];
88
-        } elseif (! empty($_FILES)) {
88
+        } elseif (!empty($_FILES)) {
89 89
             return static::parseUploadedFiles($_FILES);
90 90
         }
91 91
 
Please login to merge, or discard this patch.
Slim/DefaultServicesProvider.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
              *
43 43
              * @return Environment
44 44
              */
45
-            $container['environment'] = function () {
45
+            $container['environment'] = function() {
46 46
                 return new Environment($_SERVER);
47 47
             };
48 48
         }
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
              *
56 56
              * @return ServerRequestInterface
57 57
              */
58
-            $container['request'] = function ($container) {
58
+            $container['request'] = function($container) {
59 59
                 return Request::createFromEnvironment($container->get('environment'));
60 60
             };
61 61
         }
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
              *
69 69
              * @return ResponseInterface
70 70
              */
71
-            $container['response'] = function ($container) {
71
+            $container['response'] = function($container) {
72 72
                 $headers = new Headers(['Content-Type' => 'text/html; charset=UTF-8']);
73 73
                 $response = new Response(200, $headers);
74 74
 
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
              *
86 86
              * @return RouterInterface
87 87
              */
88
-            $container['router'] = function ($container) {
88
+            $container['router'] = function($container) {
89 89
                 $routerCacheFile = false;
90 90
                 if (isset($container->get('settings')['routerCacheFile'])) {
91 91
                     $routerCacheFile = $container->get('settings')['routerCacheFile'];
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
              *
109 109
              * @return InvocationStrategyInterface
110 110
              */
111
-            $container['foundHandler'] = function () {
111
+            $container['foundHandler'] = function() {
112 112
                 return new RequestResponse;
113 113
             };
114 114
         }
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
              *
130 130
              * @return callable
131 131
              */
132
-            $container['phpErrorHandler'] = function ($container) {
132
+            $container['phpErrorHandler'] = function($container) {
133 133
                 return new PhpError($container->get('settings')['displayErrorDetails']);
134 134
             };
135 135
         }
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
              *
151 151
              * @return callable
152 152
              */
153
-            $container['errorHandler'] = function ($container) {
153
+            $container['errorHandler'] = function($container) {
154 154
                 return new Error(
155 155
                     $container->get('settings')['displayErrorDetails']
156 156
                 );
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
              *
171 171
              * @return callable
172 172
              */
173
-            $container['notFoundHandler'] = function () {
173
+            $container['notFoundHandler'] = function() {
174 174
                 return new NotFound;
175 175
             };
176 176
         }
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
              *
190 190
              * @return callable
191 191
              */
192
-            $container['notAllowedHandler'] = function () {
192
+            $container['notAllowedHandler'] = function() {
193 193
                 return new NotAllowed;
194 194
             };
195 195
         }
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
              *
203 203
              * @return CallableResolverInterface
204 204
              */
205
-            $container['callableResolver'] = function ($container) {
205
+            $container['callableResolver'] = function($container) {
206 206
                 return new CallableResolver($container);
207 207
             };
208 208
         }
Please login to merge, or discard this patch.
Slim/Handlers/Error.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@
 block discarded – undo
120 120
     /**
121 121
      * Render exception or error as HTML.
122 122
      *
123
-     * @param Exception|Error $exception
123
+     * @param Exception $exception
124 124
      *
125 125
      * @return string
126 126
      * @throws RuntimeException
Please login to merge, or discard this patch.