src/AbstractUrl.php
protected static function fetchServerScheme(array $server)
    {
        $scheme = '';
        if (isset($server['SERVER_PROTOCOL'])) {
            $scheme = explode('/', $server['SERVER_PROTOCOL']);
            $scheme = strtolower($scheme[0]);
            if (isset($server['HTTPS']) && 'off' != $server['HTTPS']) {
                $scheme .= 's';
            }
            $scheme .= ':';
        }

        return $scheme.'//';
    }
protected static function fetchServerScheme(array $server)
    {
        $scheme = '';
        if (isset($server['SERVER_PROTOCOL'])) {
            $scheme = explode('/', $server['SERVER_PROTOCOL']);
            $scheme = strtolower($scheme[0]);
            if (isset($server['HTTPS']) && 'off' != $server['HTTPS']) {
                $scheme .= 's';
            }
            $scheme .= ':';
        }

        return $scheme.'//';
    }
protected static function fetchServerScheme ( array $ server ) { $ scheme = '' ; if ( isset ( $ server [ 'SERVER_PROTOCOL' ] ) ) { $ scheme = explode ( '/' , $ server [ 'SERVER_PROTOCOL' ] ) ; $ scheme = strtolower ( $ scheme [ 0 ] ) ; if ( isset ( $ server [ 'HTTPS' ] ) && 'off' != $ server [ 'HTTPS' ] ) { $ scheme .= 's' ; } $ scheme .= ':' ; } return $ scheme . '//' ; }
Return the Server URL scheme component

@param array $server the server array

@return string
Return the Server URL scheme component