Code Duplication    Length = 3-3 lines in 2 locations

search.php 2 locations

@@ 146-148 (lines=3) @@
143
                $ignored_queries[] = $q;
144
            }
145
        }
146
        if (!$uname_required && 0 === count($queries)) {
147
            redirect_header(XOOPS_URL . '/search.php', 2, sprintf(_SR_KEYTOOSHORT, $xoopsConfigSearch['keyword_min']));
148
        }
149
    } else {
150
        //$query = trim($query);
151
        if (!$uname_required && (strlen($query) < $xoopsConfigSearch['keyword_min'])) {
@@ 151-153 (lines=3) @@
148
        }
149
    } else {
150
        //$query = trim($query);
151
        if (!$uname_required && (strlen($query) < $xoopsConfigSearch['keyword_min'])) {
152
            redirect_header(XOOPS_URL . '/search.php', 2, sprintf(_SR_KEYTOOSHORT, $xoopsConfigSearch['keyword_min']));
153
        }
154
        $queries = [$query];
155
    }
156