Core/Curl.php
protected function curlExecute()
    {
        $response = curl_exec($this->getResource());

        $curlErrorNumber = $this->getErrorNumber();
        if ($curlErrorNumber) {
            /**
             * @var \OxidEsales\PayPalModule\Core\Exception\PayPalException $exception
             */
            $exception = oxNew(\OxidEsales\PayPalModule\Core\Exception\PayPalException::class, 'Curl error: ' . $curlErrorNumber);
            throw $exception;
        }

        return $response;
    }
protected function curlExecute()
    {
        $response = curl_exec($this->getResource());

        $curlErrorNumber = $this->getErrorNumber();
        if ($curlErrorNumber) {
            /**
             * @var \OxidEsales\PayPalModule\Core\Exception\PayPalException $exception
             */
            $exception = oxNew(\OxidEsales\PayPalModule\Core\Exception\PayPalException::class, 'Curl error: ' . $curlErrorNumber);
            throw $exception;
        }

        return $response;
    }
protected function curlExecute ( ) { $ response = curl_exec ( $ this -> getResource ( ) ) ; $ curlErrorNumber = $ this -> getErrorNumber ( ) ; if ( $ curlErrorNumber ) { /**
             * @var \OxidEsales\PayPalModule\Core\Exception\PayPalException $exception
             */ $ exception = oxNew ( \ OxidEsales \ PayPalModule \ Core \ Exception \ PayPalException :: class , 'Curl error: ' . $ curlErrorNumber ) ; throw $ exception ; } return $ response ; }
Wrapper function to be mocked for testing.

@return string

@throws \OxidEsales\PayPalModule\Core\Exception\PayPalException on curl errors
Wrapper function to be mocked for testing .