private static function checkParsedUrl(array $parsed)
    {
        $scheme   =& $parsed['scheme'];
        $user     =& $parsed['user'];
        $pass     =& $parsed['pass'];
        $host     =& $parsed['host'];
        $port     =& $parsed['port'];
        $path     =& $parsed['path'];
        $path     = '/'.ltrim($path, '/'); // If / is missing for path.
        $query    =& $parsed['query'];
        $fragment =& $parsed['fragment'];

        return compact(
            'scheme', 'user', 'pass', 'host', 'port', 'path', 'query', 'fragment'
        );
    }
private static function checkParsedUrl(array $parsed)
    {
        $scheme   =& $parsed['scheme'];
        $user     =& $parsed['user'];
        $pass     =& $parsed['pass'];
        $host     =& $parsed['host'];
        $port     =& $parsed['port'];
        $path     =& $parsed['path'];
        $path     = '/'.ltrim($path, '/'); // If / is missing for path.
        $query    =& $parsed['query'];
        $fragment =& $parsed['fragment'];

        return compact(
            'scheme', 'user', 'pass', 'host', 'port', 'path', 'query', 'fragment'
        );
    }
private static function checkParsedUrl ( array $ parsed ) { $ scheme = & $ parsed [ 'scheme' ] ; $ user = & $ parsed [ 'user' ] ; $ pass = & $ parsed [ 'pass' ] ; $ host = & $ parsed [ 'host' ] ; $ port = & $ parsed [ 'port' ] ; $ path = & $ parsed [ 'path' ] ; $ path = '/' . ltrim ( $ path , '/' ) ; // If / is missing for path. $ query = & $ parsed [ 'query' ] ; $ fragment = & $ parsed [ 'fragment' ] ; return compact ( 'scheme' , 'user' , 'pass' , 'host' , 'port' , 'path' , 'query' , 'fragment' ) ; }
Check parsed URL.

@param  array  $parsed

@return array
Check parsed URL .