| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | 7 | public function authenticate(ServerRequestInterface $request): ?IdentityInterface |
|
| 28 | { |
||
| 29 | 7 | $accessToken = $request->getQueryParams()[$this->parameterName] ?? null; |
|
| 30 | 7 | if (is_string($accessToken)) { |
|
| 31 | 6 | return $this->identityRepository->findIdentityByToken($accessToken, $this->tokenType); |
|
| 32 | } |
||
| 33 | |||
| 34 | 3 | return null; |
|
| 35 | } |
||
| 70 |