From fb1be9ca23284d380b9015e1069405d8a9b5f239 Mon Sep 17 00:00:00 2001 From: Bernd Hoehl Date: Thu, 22 Sep 2016 13:19:49 +0200 Subject: [PATCH] turning tabs into spaces --- lib/PayPal/Core/PayPalHttpConnection.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/PayPal/Core/PayPalHttpConnection.php b/lib/PayPal/Core/PayPalHttpConnection.php index 1020735..ce66cda 100644 --- a/lib/PayPal/Core/PayPalHttpConnection.php +++ b/lib/PayPal/Core/PayPalHttpConnection.php @@ -146,12 +146,12 @@ class PayPalHttpConnection throw $ex; } - // Get Request and Response Headers - $requestHeaders = curl_getinfo($ch, CURLINFO_HEADER_OUT); - //Using alternative solution to CURLINFO_HEADER_SIZE as it throws invalid number when called using PROXY. - $responseHeaderSize = mb_strlen($result,'8bit') - curl_getinfo($ch, CURLINFO_SIZE_DOWNLOAD); - $responseHeaders = mb_substr($result, 0, $responseHeaderSize, '8bit'); - $result = mb_substr($result, $responseHeaderSize, null, '8bit'); + // Get Request and Response Headers + $requestHeaders = curl_getinfo($ch, CURLINFO_HEADER_OUT); + //Using alternative solution to CURLINFO_HEADER_SIZE as it throws invalid number when called using PROXY. + $responseHeaderSize = mb_strlen($result,'8bit') - curl_getinfo($ch, CURLINFO_SIZE_DOWNLOAD); + $responseHeaders = mb_substr($result, 0, $responseHeaderSize, '8bit'); + $result = mb_substr($result, $responseHeaderSize, null, '8bit'); $this->logger->debug("Request Headers \t: " . str_replace("\r\n", ", ", $requestHeaders)); $this->logger->debug(($data && $data != '' ? "Request Data\t\t: " . $data : "No Request Payload") . "\n" . str_repeat('-', 128) . "\n");