Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
63 | 3 | public function getIdentity(AccessTokenInterface $accessToken) |
|
64 | { |
||
65 | 3 | $response = $this->request('GET', 'me/', [], $accessToken); |
|
66 | |||
67 | 1 | $hydrator = new ArrayHydrator([ |
|
68 | 1 | 'ID' => 'id', |
|
69 | 'avatar_URL' => 'pictureURL', |
||
70 | ]); |
||
71 | |||
72 | 1 | return $hydrator->hydrate(new User(), $response); |
|
73 | } |
||
75 |