| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3.0261 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 53 | 3 | public function prepareRequest(string $method, string $uri, array &$headers, array &$query, AccessTokenInterface $accessToken = null): void |
|
| 54 | { |
||
| 55 | 3 | if ($accessToken) { |
|
| 56 | 3 | $headers['Authorization'] = "Bearer {$accessToken->getToken()}"; |
|
| 57 | } |
||
| 58 | 3 | } |
|
| 59 | |||
| 60 | /** |
||
| 61 | * {@inheritdoc} |
||
| 62 | */ |
||
| 63 | 3 | public function getIdentity(AccessTokenInterface $accessToken) |
|
| 64 | { |
||
| 65 | 3 | $response = $this->request('GET', 'me/', [], $accessToken); |
|
| 75 |