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
Slim/Http/Request.php 1 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.