Code Duplication    Length = 3-3 lines in 2 locations

src/Control/Director.php 2 locations

@@ 673-675 (lines=3) @@
670
                return "";
671
            }
672
673
            if (substr($urlWithoutProtocol, 0, strlen($baseDomain)) == $baseDomain) {
674
                return substr($urlWithoutProtocol, strlen($baseDomain));
675
            }
676
        }
677
678
        // test for base folder, e.g. /var/www
@@ 691-693 (lines=3) @@
688
        }
689
690
        // Test for relative base url, e.g mywebsite/ if the full url is localhost/myswebsite
691
        if (substr($url, 0, strlen($baseDomain)) == $baseDomain) {
692
            return substr($url, strlen($baseDomain));
693
        }
694
695
        // Nothing matched, fall back to returning the original URL
696
        return $url;