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