Conditions | 1 |
Paths | 1 |
Total Lines | 5 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
18 | function buildResponse(AuthorizationEndpoint $authorizationEndpoint, array $requestData, array $responseData): ResponseInterface |
||
|
|||
19 | { |
||
20 | $uri = $authorizationEndpoint->getRedirectUri(); |
||
21 | $uri = $uri->withFragment(http_build_query($responseData)); |
||
22 | return new Response(302, ['Location' => $uri->__toString()]); |
||
23 | } |
||
24 | } |
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.