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