private static function isAllowedScheme($scheme)
    {
        if (preg_match(AbstractRequest::HTTP, $scheme) === 1) {
            return 'http';
        } elseif (preg_match(AbstractRequest::FTP, $scheme) === 1) {
            return 'ftp';
        } elseif (preg_match(AbstractRequest::SSH, $scheme) === 1) {
            return 'ssh';
        } else {
            return false;
        }
    }
private static function isAllowedScheme($scheme)
    {
        if (preg_match(AbstractRequest::HTTP, $scheme) === 1) {
            return 'http';
        } elseif (preg_match(AbstractRequest::FTP, $scheme) === 1) {
            return 'ftp';
        } elseif (preg_match(AbstractRequest::SSH, $scheme) === 1) {
            return 'ssh';
        } else {
            return false;
        }
    }
private static function isAllowedScheme ( $ scheme ) { if ( preg_match ( AbstractRequest :: HTTP , $ scheme ) === 1 ) { return 'http' ; } elseif ( preg_match ( AbstractRequest :: FTP , $ scheme ) === 1 ) { return 'ftp' ; } elseif ( preg_match ( AbstractRequest :: SSH , $ scheme ) === 1 ) { return 'ssh' ; } else { return false ; } }
Validate scheme by checking if its an allowed one
@param string $scheme
@return boolean|string If invalid, false, else return the request known one
Validate scheme by checking if its an allowed one