Skip to content

Commit

Permalink
Use default json_decode
Browse files Browse the repository at this point in the history
  • Loading branch information
ovr committed Sep 14, 2014
1 parent 6db2c6a commit a5ef515
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion providers/Github/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function getUser(AccessToken $accessToken)
{
$response = $this->service->getHttpClient()->request($this->getBaseUri() . 'user?access_token=' . $accessToken->getToken());
$body = $response->getBody();
$result = \GuzzleHttp\json_decode($body);
$result = json_decode($body);


$hydrator = new ObjectMap(array(
Expand Down
4 changes: 2 additions & 2 deletions providers/Vk/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function getName()
*/
public function parseToken($body)
{
$result = \json_decode($body);
$result = json_decode($body);

return new AccessToken($result->access_token);
}
Expand All @@ -51,7 +51,7 @@ public function getUser(AccessToken $accessToken)
{
$response = $this->service->getHttpClient()->request($this->getBaseUri() . '/method/users.get?v=5.24&access_token=' . $accessToken->getToken());
$body = $response->getBody();
$result = \json_decode($body);
$result = json_decode($body);

$hydrator = new ObjectMap(array(
'id' => 'id',
Expand Down

0 comments on commit a5ef515

Please sign in to comment.