protected function setBasicOptions(array $config)
    {
        if (!isset($config['timeout'])) {
            $config['timeout'] = static::DEFAULT_REQUEST_TIMEOUT;
        }

        if (isset($config['base_uri']) && strpos($config['base_uri'], 'http') === false) {
            $config['base_uri'] = 'https://' . $config['base_uri'];
            return $config;
        }
        return $config;
    }
protected function setBasicOptions(array $config)
    {
        if (!isset($config['timeout'])) {
            $config['timeout'] = static::DEFAULT_REQUEST_TIMEOUT;
        }

        if (isset($config['base_uri']) && strpos($config['base_uri'], 'http') === false) {
            $config['base_uri'] = 'https://' . $config['base_uri'];
            return $config;
        }
        return $config;
    }
protected function setBasicOptions ( array $ config ) { if ( ! isset ( $ config [ 'timeout' ] ) ) { $ config [ 'timeout' ] = static :: DEFAULT_REQUEST_TIMEOUT ; } if ( isset ( $ config [ 'base_uri' ] ) && strpos ( $ config [ 'base_uri' ] , 'http' ) === false ) { $ config [ 'base_uri' ] = 'https://' . $ config [ 'base_uri' ] ; return $ config ; } return $ config ; }
Set timeout and base_uri options

@param array $config
@return mixed
Set timeout and base_uri options