Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/LiveChat/Api/Model/BaseModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
4 changes: 2 additions & 2 deletions src/LiveChat/Api/Rest/RestRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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) . '. ';
Expand Down