Skip to content

Commit

Permalink
Tweak ClientAdapter
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugene Leonovich committed Apr 3, 2017
1 parent f2a4838 commit bb20a96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ClientAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ public function __construct(Client $client)

public function call($funcName, array $args = [])
{
$result = $this->client->call($funcName, $args);
$data = $this->client->call($funcName, $args)->getData();

return isset($result->getData()[0][0]) ? $result->getData() : [$result->getData()];
return isset($data[0][0]) ? $data : [$data];
}
}

0 comments on commit bb20a96

Please sign in to comment.