Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
53 | 3 | public function getIdentity(AccessTokenInterface $accessToken) |
|
54 | { |
||
55 | 3 | $response = $this->request('GET', 'user/profile', [], $accessToken); |
|
56 | |||
57 | 1 | $hydrator = new ArrayHydrator([ |
|
58 | 'user_id' => 'id', |
||
59 | 'name' => 'firstname', |
||
60 | ]); |
||
61 | |||
62 | 1 | return $hydrator->hydrate(new User(), $response); |
|
63 | } |
||
65 |