From 5a203238b9c8b9a559c310b49716bb764e8952eb Mon Sep 17 00:00:00 2001 From: Ilyas Salikhov Date: Tue, 15 Oct 2013 14:59:09 +0400 Subject: [PATCH] Remove tabs --- lib/IntaroCrm/RestApi.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/IntaroCrm/RestApi.php b/lib/IntaroCrm/RestApi.php index 5e002c5..6d316a0 100644 --- a/lib/IntaroCrm/RestApi.php +++ b/lib/IntaroCrm/RestApi.php @@ -470,16 +470,16 @@ class RestApi $this->parameters = array('apiKey' => $this->apiKey); $errno = curl_errno($ch); - $error = curl_error($ch); + $error = curl_error($ch); curl_close($ch); if ($errno) - throw new Exception\CurlException($error, $errno); + throw new Exception\CurlException($error, $errno); $result = json_decode($response, true); if ($statusCode >= 400 || isset($result['success']) && $result['success'] === false) { - throw new Exception\ApiException($this->getErrorMessage($result), $statusCode); + throw new Exception\ApiException($this->getErrorMessage($result), $statusCode); } unset($result['success']);