Code Duplication    Length = 3-3 lines in 2 locations

manager/includes/src/Core.php 2 locations

@@ 691-693 (lines=3) @@
688
        $suf = $this->config['friendly_url_suffix'];
689
        $pre = preg_quote($pre, '/');
690
        $suf = preg_quote($suf, '/');
691
        if ($pre && preg_match('@^' . $pre . '(.*)$@', $q, $_)) {
692
            $q = $_[1];
693
        }
694
        if ($suf && preg_match('@(.*)' . $suf . '$@', $q, $_)) {
695
            $q = $_[1];
696
        }
@@ 694-696 (lines=3) @@
691
        if ($pre && preg_match('@^' . $pre . '(.*)$@', $q, $_)) {
692
            $q = $_[1];
693
        }
694
        if ($suf && preg_match('@(.*)' . $suf . '$@', $q, $_)) {
695
            $q = $_[1];
696
        }
697
698
        /* First remove any / before or after */
699
        $q = trim($q, '/');