protected function getGuzzleOptions($options = [])
    {
        if (!empty($this->options['username']) && !empty($this->options['password'])) {
            $options['auth'] = [
                $this->options['username'],
                $this->options['password']
            ];
        }
        return $options;
    }
protected function getGuzzleOptions($options = [])
    {
        if (!empty($this->options['username']) && !empty($this->options['password'])) {
            $options['auth'] = [
                $this->options['username'],
                $this->options['password']
            ];
        }
        return $options;
    }
protected function getGuzzleOptions ( $ options = [ ] ) { if ( ! empty ( $ this -> options [ 'username' ] ) && ! empty ( $ this -> options [ 'password' ] ) ) { $ options [ 'auth' ] = [ $ this -> options [ 'username' ] , $ this -> options [ 'password' ] ] ; } return $ options ; }
Assembles an array of request options to pass to Guzzle

@param array $options Authentication (etc) will be merged into this array and returned
@return array
Assembles an array of request options to pass to Guzzle