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 (#2411)
by Joe
02:00
created
example/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,12 +26,12 @@
 block discarded – undo
26 26
  * argument for `Slim::get`, `Slim::post`, `Slim::put`, `Slim::patch`, and `Slim::delete`
27 27
  * is an anonymous function.
28 28
  */
29
-$app->get('/', function ($request, $response, $args) {
29
+$app->get('/', function($request, $response, $args) {
30 30
     $response->write("Welcome to Slim!");
31 31
     return $response;
32 32
 });
33 33
 
34
-$app->get('/hello[/{name}]', function ($request, $response, $args) {
34
+$app->get('/hello[/{name}]', function($request, $response, $args) {
35 35
     $response->write("Hello, " . $args['name']);
36 36
     return $response;
37 37
 })->setArgument('name', 'World!');
Please login to merge, or discard this patch.
Slim/Http/Response.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -207,7 +207,7 @@
 block discarded – undo
207 207
      */
208 208
     protected function filterStatus($status)
209 209
     {
210
-        if (!is_integer($status) || $status<100 || $status>599) {
210
+        if (!is_integer($status) || $status < 100 || $status > 599) {
211 211
             throw new InvalidArgumentException('Invalid HTTP status code');
212 212
         }
213 213
 
Please login to merge, or discard this patch.
Slim/Http/Headers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
             $key = strtoupper($key);
57 57
             if (isset(static::$special[$key]) || strpos($key, 'HTTP_') === 0) {
58 58
                 if ($key !== 'HTTP_CONTENT_LENGTH') {
59
-                    $data[$key] =  $value;
59
+                    $data[$key] = $value;
60 60
                 }
61 61
             }
62 62
         }
Please login to merge, or discard this patch.
Slim/App.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -433,7 +433,7 @@  discard block
 block discarded – undo
433 433
         $router = $this->container->get('router');
434 434
 
435 435
         // If router hasn't been dispatched or the URI changed then dispatch
436
-        if (null === $routeInfo || ($routeInfo['request'] !== [$request->getMethod(), (string) $request->getUri()])) {
436
+        if (null === $routeInfo || ($routeInfo['request'] !== [$request->getMethod(), (string)$request->getUri()])) {
437 437
             $request = $this->dispatchRouterAndPrepareRoute($request, $router);
438 438
             $routeInfo = $request->getAttribute('routeInfo');
439 439
         }
@@ -525,7 +525,7 @@  discard block
 block discarded – undo
525 525
             $request = $request->withAttribute('route', $route);
526 526
         }
527 527
 
528
-        $routeInfo['request'] = [$request->getMethod(), (string) $request->getUri()];
528
+        $routeInfo['request'] = [$request->getMethod(), (string)$request->getUri()];
529 529
 
530 530
         return $request->withAttribute('routeInfo', $routeInfo);
531 531
     }
@@ -554,7 +554,7 @@  discard block
 block discarded – undo
554 554
             }
555 555
             $size = $response->getBody()->getSize();
556 556
             if ($size !== null && !$response->hasHeader('Content-Length')) {
557
-                $response = $response->withHeader('Content-Length', (string) $size);
557
+                $response = $response->withHeader('Content-Length', (string)$size);
558 558
             }
559 559
         }
560 560
 
Please login to merge, or discard this patch.
Slim/Handlers/AbstractError.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      */
26 26
     public function __construct($displayErrorDetails = false)
27 27
     {
28
-        $this->displayErrorDetails = (bool) $displayErrorDetails;
28
+        $this->displayErrorDetails = (bool)$displayErrorDetails;
29 29
     }
30 30
 
31 31
     /**
Please login to merge, or discard this patch.
Slim/Container.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
          *
95 95
          * @return array|\ArrayAccess
96 96
          */
97
-        $this['settings'] = function () use ($userSettings, $defaultSettings) {
97
+        $this['settings'] = function() use ($userSettings, $defaultSettings) {
98 98
             return new Collection(array_merge($defaultSettings, $userSettings));
99 99
         };
100 100
 
Please login to merge, or discard this patch.
Slim/Router.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -188,7 +188,7 @@
 block discarded – undo
188 188
             return $this->dispatcher;
189 189
         }
190 190
 
191
-        $routeDefinitionCallback = function (RouteCollector $r) {
191
+        $routeDefinitionCallback = function(RouteCollector $r) {
192 192
             foreach ($this->getRoutes() as $route) {
193 193
                 $r->addRoute($route->getMethods(), $route->getPattern(), $route->getIdentifier());
194 194
             }
Please login to merge, or discard this patch.
Slim/Route.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
     /**
73 73
      * Create new route
74 74
      *
75
-     * @param string|string[]   $methods The route HTTP methods
75
+     * @param string[]   $methods The route HTTP methods
76 76
      * @param string            $pattern The route pattern
77 77
      * @param callable          $callable The route callable
78 78
      * @param RouteGroup[]      $groups The parent route groups
Please login to merge, or discard this patch.
Slim/Http/Request.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -801,7 +801,7 @@  discard block
 block discarded – undo
801 801
      * These values MAY be prepared from $_FILES or the message body during
802 802
      * instantiation, or MAY be injected via withUploadedFiles().
803 803
      *
804
-     * @return array An array tree of UploadedFileInterface instances; an empty
804
+     * @return UploadedFileInterface[] An array tree of UploadedFileInterface instances; an empty
805 805
      *     array MUST be returned if no data is present.
806 806
      */
807 807
     public function getUploadedFiles()
@@ -1134,7 +1134,7 @@  discard block
 block discarded – undo
1134 1134
      * @param string $key
1135 1135
      * @param mixed $default
1136 1136
      *
1137
-     * @return mixed
1137
+     * @return null|string
1138 1138
      */
1139 1139
     public function getParsedBodyParam($key, $default = null)
1140 1140
     {
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
             unset($port);
206 206
         }
207 207
 
208
-        $this->registerMediaTypeParser('application/json', function ($input) {
208
+        $this->registerMediaTypeParser('application/json', function($input) {
209 209
             $result = json_decode($input, true);
210 210
             if (!is_array($result)) {
211 211
                 return null;
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
             return $result;
214 214
         });
215 215
 
216
-        $this->registerMediaTypeParser('application/xml', function ($input) {
216
+        $this->registerMediaTypeParser('application/xml', function($input) {
217 217
             $backup = libxml_disable_entity_loader(true);
218 218
             $backup_errors = libxml_use_internal_errors(true);
219 219
             $result = simplexml_load_string($input);
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
             return $result;
227 227
         });
228 228
 
229
-        $this->registerMediaTypeParser('text/xml', function ($input) {
229
+        $this->registerMediaTypeParser('text/xml', function($input) {
230 230
             $backup = libxml_disable_entity_loader(true);
231 231
             $backup_errors = libxml_use_internal_errors(true);
232 232
             $result = simplexml_load_string($input);
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
             return $result;
240 240
         });
241 241
 
242
-        $this->registerMediaTypeParser('application/x-www-form-urlencoded', function ($input) {
242
+        $this->registerMediaTypeParser('application/x-www-form-urlencoded', function($input) {
243 243
             parse_str($input, $data);
244 244
             return $data;
245 245
         });
@@ -1035,7 +1035,7 @@  discard block
 block discarded – undo
1035 1035
         // look for a media type with a structured syntax suffix (RFC 6839)
1036 1036
         $parts = explode('+', $mediaType);
1037 1037
         if (count($parts) >= 2) {
1038
-            $mediaType = 'application/' . $parts[count($parts)-1];
1038
+            $mediaType = 'application/' . $parts[count($parts) - 1];
1039 1039
         }
1040 1040
 
1041 1041
         if (isset($this->bodyParsers[$mediaType]) === true) {
Please login to merge, or discard this patch.