From 59b40f86866aad4ea22db2e65a84c4882b6f4851 Mon Sep 17 00:00:00 2001 From: MoeBrowne Date: Sat, 24 Mar 2018 17:56:48 +0000 Subject: [PATCH] Corrects a couple of typos --- src/LiveChat/Api/Model/BaseModel.php | 2 +- src/LiveChat/Api/Rest/RestRequest.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/LiveChat/Api/Model/BaseModel.php b/src/LiveChat/Api/Model/BaseModel.php index 9418371..20b34c1 100644 --- a/src/LiveChat/Api/Model/BaseModel.php +++ b/src/LiveChat/Api/Model/BaseModel.php @@ -117,7 +117,7 @@ protected function parseParams(array $params) * @param string $method * @param string $path * @param array $requestBody - * @return miexd + * @return mixed * @throws \Exception */ private function executeRequest($method, $path, array $requestBody = array()) diff --git a/src/LiveChat/Api/Rest/RestRequest.php b/src/LiveChat/Api/Rest/RestRequest.php index 39f9775..cd44cf6 100644 --- a/src/LiveChat/Api/Rest/RestRequest.php +++ b/src/LiveChat/Api/Rest/RestRequest.php @@ -101,7 +101,7 @@ public function setUsername($username) } /** - * Retruns error. + * Returns error. * @return string the error message or '' (the empty string) if no error occurred. */ public function getError() @@ -168,7 +168,7 @@ public function getResponse() { */ private function throwException($httpCode) { if (null === $httpCode){ - throw new \Exception('Something went wrong. StausCode is null.'); + throw new \Exception('Something went wrong. StatusCode is null.'); } else{ $errorResponseBody = json_decode($this->getResponseBody(), true); $errorMessage = RestUtils::getStatusCodeMessage($httpCode) . '. ';