private function initCurl(array $curlOptions)
    {
        $curlResource = curl_init();
        foreach ($curlOptions as $option => $value) {
            curl_setopt($curlResource, $option, $value);
        }

        return $curlResource;
    }
private function initCurl(array $curlOptions)
    {
        $curlResource = curl_init();
        foreach ($curlOptions as $option => $value) {
            curl_setopt($curlResource, $option, $value);
        }

        return $curlResource;
    }
private function initCurl ( array $ curlOptions ) { $ curlResource = curl_init ( ) ; foreach ( $ curlOptions as $ option => $ value ) { curl_setopt ( $ curlResource , $ option , $ value ) ; } return $ curlResource ; }
Initializes cURL resource.
@param array $curlOptions cURL options.
@return resource prepared cURL resource.
Initializes cURL resource .