Storage/src/StreamWrapper.php
private function openPath($path)
    {
        $url = (array) parse_url($path) + [
            'scheme' => '',
            'path' => '',
            'host' => ''
        ];
        $this->protocol = $url['scheme'];
        $this->file = ltrim($url['path'], '/');
        $client = self::getClient($this->protocol);
        $this->bucket = $client->bucket($url['host']);
        return $client;
    }
private function openPath($path)
    {
        $url = (array) parse_url($path) + [
            'scheme' => '',
            'path' => '',
            'host' => ''
        ];
        $this->protocol = $url['scheme'];
        $this->file = ltrim($url['path'], '/');
        $client = self::getClient($this->protocol);
        $this->bucket = $client->bucket($url['host']);
        return $client;
    }
private function openPath ( $ path ) { $ url = ( array ) parse_url ( $ path ) + [ 'scheme' => '' , 'path' => '' , 'host' => '' ] ; $ this -> protocol = $ url [ 'scheme' ] ; $ this -> file = ltrim ( $ url [ 'path' ] , '/' ) ; $ client = self :: getClient ( $ this -> protocol ) ; $ this -> bucket = $ client -> bucket ( $ url [ 'host' ] ) ; return $ client ; }
Parse the URL and set protocol, filename and bucket.

@param  string $path URL to open
@return StorageClient
Parse the URL and set protocol filename and bucket .