private function getProxySettings(RequestContext $context): array
    {
        $proxy = [];

        if (!is_null($context->getProxy())) {
            $proxy[CURLOPT_PROXY] = $context->getProxy();
        }

        return $proxy;
    }
private function getProxySettings(RequestContext $context): array
    {
        $proxy = [];

        if (!is_null($context->getProxy())) {
            $proxy[CURLOPT_PROXY] = $context->getProxy();
        }

        return $proxy;
    }
private function getProxySettings ( RequestContext $ context ) : array { $ proxy = [ ] ; if ( ! is_null ( $ context -> getProxy ( ) ) ) { $ proxy [ CURLOPT_PROXY ] = $ context -> getProxy ( ) ; } return $ proxy ; }
Get proxy settings for cURL handle

@param RequestContext $context
@return array
Get proxy settings for cURL handle