Passed
Push — master ( 9af1c8...b5eb9a )
by Eric
05:59
created
src/Utility/Utility.php 2 patches
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1461,8 +1461,7 @@
 block discarded – undo
1461 1461
         /** @var string $host **/
1462 1462
         $host = (
1463 1463
             ($acceptForwarded && isset($_SERVER['HTTP_X_FORWARDED_HOST'])) ? 
1464
-            $_SERVER['HTTP_X_FORWARDED_HOST'] : 
1465
-            ($_SERVER['HTTP_HOST'] ?? $_SERVER['SERVER_NAME'] ?? '')
1464
+            $_SERVER['HTTP_X_FORWARDED_HOST'] : ($_SERVER['HTTP_HOST'] ?? $_SERVER['SERVER_NAME'] ?? '')
1466 1465
         );
1467 1466
         $host = trim(strval($host));
1468 1467
 
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -831,7 +831,7 @@
 block discarded – undo
831 831
 
832 832
         // Build the actual contents of the directory
833 833
         /** @var RecursiveDirectoryIterator $val **/
834
-        foreach ($iterator AS $key => $val) {
834
+        foreach ($iterator as $key => $val) {
835 835
             if ($ignore !== '' && preg_match("#($ignore)#i", $val->getPath()) === 1) {
836 836
                 continue;
837 837
             }
Please login to merge, or discard this patch.