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
Push — 3.x ( 3ab1a1...52bab5 )
by Glenn
15s
created
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
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
             $this->headers->set('Host', $this->uri->getHost());
202 202
         }
203 203
 
204
-        $this->registerMediaTypeParser('application/json', function ($input) {
204
+        $this->registerMediaTypeParser('application/json', function($input) {
205 205
             $result = json_decode($input, true);
206 206
             if (!is_array($result)) {
207 207
                 return null;
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
             return $result;
210 210
         });
211 211
 
212
-        $this->registerMediaTypeParser('application/xml', function ($input) {
212
+        $this->registerMediaTypeParser('application/xml', function($input) {
213 213
             $backup = libxml_disable_entity_loader(true);
214 214
             $backup_errors = libxml_use_internal_errors(true);
215 215
             $result = simplexml_load_string($input);
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
             return $result;
223 223
         });
224 224
 
225
-        $this->registerMediaTypeParser('text/xml', function ($input) {
225
+        $this->registerMediaTypeParser('text/xml', function($input) {
226 226
             $backup = libxml_disable_entity_loader(true);
227 227
             $backup_errors = libxml_use_internal_errors(true);
228 228
             $result = simplexml_load_string($input);
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
             return $result;
236 236
         });
237 237
 
238
-        $this->registerMediaTypeParser('application/x-www-form-urlencoded', function ($input) {
238
+        $this->registerMediaTypeParser('application/x-www-form-urlencoded', function($input) {
239 239
             parse_str($input, $data);
240 240
             return $data;
241 241
         });
@@ -1031,7 +1031,7 @@  discard block
 block discarded – undo
1031 1031
         // look for a media type with a structured syntax suffix (RFC 6839)
1032 1032
         $parts = explode('+', $mediaType);
1033 1033
         if (count($parts) >= 2) {
1034
-            $mediaType = 'application/' . $parts[count($parts)-1];
1034
+            $mediaType = 'application/' . $parts[count($parts) - 1];
1035 1035
         }
1036 1036
 
1037 1037
         if (isset($this->bodyParsers[$mediaType]) === true) {
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
@@ -117,7 +117,7 @@
 block discarded – undo
117 117
     /**
118 118
      * Render exception or error as HTML.
119 119
      *
120
-     * @param \Exception|\Error $exception
120
+     * @param \Exception $exception
121 121
      *
122 122
      * @return string
123 123
      */
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/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/DefaultServicesProvider.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
              *
44 44
              * @return EnvironmentInterface
45 45
              */
46
-            $container['environment'] = function () {
46
+            $container['environment'] = function() {
47 47
                 return new Environment($_SERVER);
48 48
             };
49 49
         }
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
              *
57 57
              * @return ServerRequestInterface
58 58
              */
59
-            $container['request'] = function ($container) {
59
+            $container['request'] = function($container) {
60 60
                 return Request::createFromEnvironment($container->get('environment'));
61 61
             };
62 62
         }
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
              *
70 70
              * @return ResponseInterface
71 71
              */
72
-            $container['response'] = function ($container) {
72
+            $container['response'] = function($container) {
73 73
                 $headers = new Headers(['Content-Type' => 'text/html; charset=UTF-8']);
74 74
                 $response = new Response(200, $headers);
75 75
 
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
              *
87 87
              * @return RouterInterface
88 88
              */
89
-            $container['router'] = function ($container) {
89
+            $container['router'] = function($container) {
90 90
                 $routerCacheFile = false;
91 91
                 if (isset($container->get('settings')['routerCacheFile'])) {
92 92
                     $routerCacheFile = $container->get('settings')['routerCacheFile'];
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
              *
110 110
              * @return InvocationStrategyInterface
111 111
              */
112
-            $container['foundHandler'] = function () {
112
+            $container['foundHandler'] = function() {
113 113
                 return new RequestResponse;
114 114
             };
115 115
         }
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
              *
131 131
              * @return callable
132 132
              */
133
-            $container['phpErrorHandler'] = function ($container) {
133
+            $container['phpErrorHandler'] = function($container) {
134 134
                 return new PhpError($container->get('settings')['displayErrorDetails']);
135 135
             };
136 136
         }
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
              *
152 152
              * @return callable
153 153
              */
154
-            $container['errorHandler'] = function ($container) {
154
+            $container['errorHandler'] = function($container) {
155 155
                 return new Error(
156 156
                     $container->get('settings')['displayErrorDetails']
157 157
                 );
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
              *
172 172
              * @return callable
173 173
              */
174
-            $container['notFoundHandler'] = function () {
174
+            $container['notFoundHandler'] = function() {
175 175
                 return new NotFound;
176 176
             };
177 177
         }
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
              *
191 191
              * @return callable
192 192
              */
193
-            $container['notAllowedHandler'] = function () {
193
+            $container['notAllowedHandler'] = function() {
194 194
                 return new NotAllowed;
195 195
             };
196 196
         }
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
              *
204 204
              * @return CallableResolverInterface
205 205
              */
206
-            $container['callableResolver'] = function ($container) {
206
+            $container['callableResolver'] = function($container) {
207 207
                 return new CallableResolver($container);
208 208
             };
209 209
         }
Please login to merge, or discard this patch.