Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
21 | function handleAuthorizationRequest(AuthorizationEndpoint $authorizationEndpoint, array $requestData): array |
||
|
|||
22 | { |
||
23 | $authorizationCode = $this->authorizationCodeStorage->generate( |
||
24 | implode(' ', $authorizationEndpoint->getScopes()), |
||
25 | $authorizationEndpoint->getClient()->getIdentifier(), |
||
26 | $authorizationEndpoint->getResourceOwner()->getIdentifier(), |
||
27 | $requestData['scope'] ?? null, |
||
28 | $requestData['redirect_uri'] ?? null |
||
29 | ); |
||
30 | return ['code' => $authorizationCode->getCode()]; |
||
31 | } |
||
32 | } |
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.