Total Complexity | 3 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
23 | class Controller extends AbstractController |
||
24 | { |
||
25 | /** |
||
26 | * @Route("/public_action", name="public_action") |
||
27 | */ |
||
28 | public function publicAction() |
||
29 | { |
||
30 | return new Response('user action'); |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * @Route("/user_action", name="user_action") |
||
35 | * @IsGranted("ROLE_USER", subject="argument") |
||
36 | */ |
||
37 | public function securedByIsGrantedAction($argument = 10) |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * @Route("/admin_action", name="admin_action") |
||
44 | * @Security("is_granted('ROLE_ADMIN')") |
||
45 | */ |
||
46 | public function securedBySecurityAction($argument) |
||
49 | } |
||
50 | } |
||
51 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.