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 — master ( 9b6a28...3985d3 )
by Brad
01:56
created
src/Tasks/BuildAsset.php 1 patch
Braces   +16 added lines, -4 removed lines patch added patch discarded remove patch
@@ -282,7 +282,10 @@  discard block
 block discarded – undo
282 282
      */
283 283
     protected function getSourceType(SplFileInfo $file): string
284 284
     {
285
-        if ($file->isDir()) return 'folder';
285
+        if ($file->isDir())
286
+        {
287
+            return 'folder';
288
+        }
286 289
         return $file->getExtension();
287 290
     }
288 291
 
@@ -412,11 +415,20 @@  discard block
 block discarded – undo
412 415
         }
413 416
         else
414 417
         {
415
-            if (!is_array($input)) $input = [$input];
418
+            if (!is_array($input))
419
+            {
420
+                $input = [$input];
421
+            }
416 422
 
417
-            if (count($input) === 0) throw new \UnexpectedValueException;
423
+            if (count($input) === 0)
424
+            {
425
+                throw new \UnexpectedValueException;
426
+            }
418 427
 
419
-            if (!is_string($input[0])) throw new \UnexpectedValueException;
428
+            if (!is_string($input[0]))
429
+            {
430
+                throw new \UnexpectedValueException;
431
+            }
420 432
 
421 433
             $output = $input;
422 434
         }
Please login to merge, or discard this patch.