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) . '. ';