Skip to content

Commit

Permalink
Obsolete code removed and changed variable naming
Browse files Browse the repository at this point in the history
  • Loading branch information
devilcius committed Jan 20, 2019
1 parent b166c8a commit 4b0cb42
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/lastfmapi/Api/BaseApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,10 @@ protected function apiGetCall($vars)
$out .= "Host: " . $this->host . "\r\n";
$out .= "\r\n";
$this->response = $this->socket->send($out, 'array');
$return = $this->processResponse();
$processedResponse = $this->processResponse();
$this->cache->set($vars, $this->response);
return $return;

return $processedResponse;
}
}
} else {
Expand All @@ -239,7 +240,7 @@ protected function apiGetCall($vars)
* @return object
*/

protected function apiPostCall($vars, $return = 'bool')
protected function apiPostCall($vars)
{
$this->setup();
if ($this->connected == 1) {
Expand Down

0 comments on commit 4b0cb42

Please sign in to comment.