| Total Complexity | 1 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | class OAuthAuthorizeController extends AuthorizeController { |
||
| 20 | /** |
||
| 21 | * Authorize user |
||
| 22 | * |
||
| 23 | * @Route("/oauth/v2/auth") |
||
| 24 | * @Method({"POST","GET"}) |
||
| 25 | * |
||
| 26 | * @Operation( |
||
| 27 | * tags={"OAuth"}, |
||
| 28 | * summary="Authorize user", |
||
| 29 | * @SWG\Parameter( |
||
| 30 | * name="redirect_uri", |
||
| 31 | * in="formData", |
||
| 32 | * description="The redirect URI registered by the client", |
||
| 33 | * required=false, |
||
| 34 | * type="string" |
||
| 35 | * ), |
||
| 36 | * @SWG\Parameter( |
||
| 37 | * name="scope", |
||
| 38 | * in="formData", |
||
| 39 | * description="The scope of the authorization", |
||
| 40 | * required=false, |
||
| 41 | * type="string" |
||
| 42 | * ), |
||
| 43 | * @SWG\Parameter( |
||
| 44 | * name="state", |
||
| 45 | * in="formData", |
||
| 46 | * description="Any client state that needs to be passed on to the client request URI", |
||
| 47 | * required=false, |
||
| 48 | * type="string" |
||
| 49 | * ), |
||
| 50 | * @SWG\Response( |
||
| 51 | * response="200", |
||
| 52 | * description="Returned when successful" |
||
| 53 | * ) |
||
| 54 | * ) |
||
| 55 | * @param Request $request |
||
| 56 | * @return \Symfony\Component\HttpFoundation\Response |
||
| 57 | */ |
||
| 58 | public function authorize(Request $request) |
||
| 64 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.