From 8df58f50af30c007bd955cbfb2f67b398b254be1 Mon Sep 17 00:00:00 2001 From: lashnag Date: Thu, 19 Jul 2018 12:39:19 +0300 Subject: [PATCH] Update GetClient.php Tabs --- src/clients/GetClient.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/clients/GetClient.php b/src/clients/GetClient.php index 9e2f2ce..a661f7a 100644 --- a/src/clients/GetClient.php +++ b/src/clients/GetClient.php @@ -42,11 +42,11 @@ public function sendRequest(BaseRequest $service) { $this->logger->log(self::LOG_LEVEL, 'Response '.$response); } - if(curl_errno($curl)){ - throw new SdkException(curl_error($curl), curl_errno($curl)); - } + if(curl_errno($curl)){ + throw new SdkException(curl_error($curl), curl_errno($curl)); + } - $httpCode = curl_getinfo($curl, CURLINFO_HTTP_CODE); + $httpCode = curl_getinfo($curl, CURLINFO_HTTP_CODE); if ($httpCode !== HttpCodes::CODE_200) { throw new SdkException('Service error. Wrong http code '.$httpCode, $httpCode); }