| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | function handleAuthorizationRequest(AuthorizationEndpoint $authorizationEndpoint, array $requestData): array |
||
| 33 | { |
||
| 34 | $authorizationCode = $this->authorizationCodeStorage->generate( |
||
| 35 | implode(' ', $authorizationEndpoint->getScopes()), |
||
| 36 | $authorizationEndpoint->getClient()->getIdentifier(), |
||
| 37 | $authorizationEndpoint->getResourceOwner()->getIdentifier(), |
||
| 38 | $requestData['scope'] ?? null, |
||
| 39 | $requestData['redirect_uri'] ?? null |
||
| 40 | ); |
||
| 41 | return ['code' => $authorizationCode->getCode()]; |
||
| 42 | } |
||
| 53 | } |
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.