Total Complexity | 3 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | class DefaultValueController |
||
23 | { |
||
24 | /** |
||
25 | * @Route("/{default}/path", methods={"GET", "POST"}, name="action") |
||
26 | */ |
||
27 | public function action($default = 'value'): void |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * @Route( |
||
33 | * "/hello/{name:\w+}", |
||
34 | * methods={"GET", "POST"}, |
||
35 | * name="hello_without_default" |
||
36 | * ) |
||
37 | * @Route( |
||
38 | * "/cool/{name=<Symfony>}", |
||
39 | * where={"name": "\w+"}, |
||
40 | * methods={"GET", "POST"}, |
||
41 | * name="hello_with_default" |
||
42 | * ) |
||
43 | */ |
||
44 | public function hello(string $name = 'World'): void |
||
45 | { |
||
46 | } |
||
47 | |||
48 | private function notAccessed(): void |
||
50 | } |
||
51 | } |
||
52 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.