private function cleanupQuery(string $uri): string
    {
        if (false !== $pos = strpos($uri, '?')) {
            return substr($uri, 0, $pos);
        }

        return $uri;
    }
private function cleanupQuery(string $uri): string
    {
        if (false !== $pos = strpos($uri, '?')) {
            return substr($uri, 0, $pos);
        }

        return $uri;
    }
private function cleanupQuery ( string $ uri ) : string { if ( false !== $ pos = strpos ( $ uri , '?' ) ) { return substr ( $ uri , 0 , $ pos ) ; } return $ uri ; }
Remove the query string from the uri.
Remove the query string from the uri .