| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | function handleAuthorizationRequest(AuthorizationEndpoint $authorizationEndpoint, array $requestData): array |
||
| 34 | { |
||
| 35 | $authorizationCode = $this->authorizationCodeStorage->create( |
||
| 36 | implode(' ', $authorizationEndpoint->getScopes()), |
||
| 37 | $authorizationEndpoint->getClient()->getIdentifier(), |
||
| 38 | $authorizationEndpoint->getResourceOwner()->getIdentifier(), |
||
| 39 | $requestData['scope'] ?? null, |
||
| 40 | $requestData['redirect_uri'] ?? null |
||
| 41 | ); |
||
| 42 | $this->authorizationCodeStorage->save($authorizationCode); |
||
| 43 | return ['code' => $authorizationCode->getCode()]; |
||
| 44 | } |
||
| 67 | } |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.