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 (#2495)
by Rob
06: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/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/MiddlewareAwareTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
             $this->seedMiddlewareStack();
61 61
         }
62 62
         $next = $this->tip;
63
-        $this->tip = function (
63
+        $this->tip = function(
64 64
             ServerRequestInterface $request,
65 65
             ResponseInterface $response
66 66
         ) use (
Please login to merge, or discard this patch.
Slim/Dispatcher.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
     }
93 93
 
94 94
     /**
95
-     * @param array $result
95
+     * @param integer[] $result
96 96
      * @return RoutingResults
97 97
      */
98 98
     protected function routingResultsFromVariableRouteResults(array $result): RoutingResults
Please login to merge, or discard this patch.
Slim/Route.php 2 patches
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|string   $callable The route callable
78 78
      * @param RouteGroup[]      $groups The parent route groups
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -320,7 +320,7 @@
 block discarded – undo
320 320
         $handler = $this->routeInvocationStrategy;
321 321
 
322 322
         $routeResponse = $handler($callable, $request, $response, $this->arguments);
323
-        if (! $routeResponse instanceof ResponseInterface) {
323
+        if (!$routeResponse instanceof ResponseInterface) {
324 324
             throw new \RuntimeException('Route handler must return instance of \Psr\Http\Message\ResponseInterface');
325 325
         }
326 326
 
Please login to merge, or discard this patch.
Slim/App.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
      */
203 203
     public function getCallableResolver(): CallableResolverInterface
204 204
     {
205
-        if (! $this->callableResolver instanceof CallableResolverInterface) {
205
+        if (!$this->callableResolver instanceof CallableResolverInterface) {
206 206
             $this->callableResolver = new CallableResolver($this->container);
207 207
         }
208 208
 
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
      */
227 227
     public function getRouter(): RouterInterface
228 228
     {
229
-        if (! $this->router instanceof RouterInterface) {
229
+        if (!$this->router instanceof RouterInterface) {
230 230
             $router = new Router();
231 231
             $resolver = $this->getCallableResolver();
232 232
             if ($resolver instanceof CallableResolverInterface) {
@@ -369,7 +369,7 @@  discard block
 block discarded – undo
369 369
      */
370 370
     public function redirect(string $from, $to, int $status = 302): RouteInterface
371 371
     {
372
-        $handler = function ($request, ResponseInterface $response) use ($to, $status) {
372
+        $handler = function($request, ResponseInterface $response) use ($to, $status) {
373 373
             return $response->withHeader('Location', (string)$to)->withStatus($status);
374 374
         };
375 375
 
@@ -473,7 +473,7 @@  discard block
 block discarded – undo
473 473
                 $body->rewind();
474 474
             }
475 475
             $chunkSize = $this->getSetting('responseChunkSize', 4096);
476
-            $contentLength  = $response->getHeaderLine('Content-Length');
476
+            $contentLength = $response->getHeaderLine('Content-Length');
477 477
             if (!$contentLength) {
478 478
                 $contentLength = $body->getSize();
479 479
             }
Please login to merge, or discard this patch.
Slim/Middleware/ContentLengthMiddleware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
         // Add Content-Length header if not already added
36 36
         $size = $response->getBody()->getSize();
37 37
         if ($size !== null && !$response->hasHeader('Content-Length')) {
38
-            $response = $response->withHeader('Content-Length', (string) $size);
38
+            $response = $response->withHeader('Content-Length', (string)$size);
39 39
         }
40 40
 
41 41
         return $response;
Please login to merge, or discard this patch.
Slim/Error/Renderers/JsonErrorRenderer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
             } while ($exception = $exception->getPrevious());
36 36
         }
37 37
 
38
-        return json_encode($error, JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES);
38
+        return json_encode($error, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
39 39
     }
40 40
 
41 41
     /**
Please login to merge, or discard this patch.