Total Complexity | 6 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | class RouteUrlSituationProvider |
||
6 | { |
||
7 | 116 | public function getListener() |
|
8 | { |
||
9 | 116 | return RouteEventListener::class; |
|
10 | } |
||
11 | |||
12 | 116 | public function getSituationProvider() |
|
13 | { |
||
14 | 116 | return RouteUrlsNormalizer::class; |
|
15 | } |
||
16 | |||
17 | 116 | public function getForgetKey() |
|
18 | { |
||
19 | 116 | return 'routeChecks'; |
|
20 | } |
||
21 | |||
22 | 116 | public function getMethods(): array |
|
23 | { |
||
24 | return [ |
||
25 | 116 | 'whenYouVisitUrl', |
|
26 | 'whenYouSendGet', |
||
27 | 'whenYouSendPost', |
||
28 | 'whenYouSendPatch', |
||
29 | 'whenYouSendPut', |
||
30 | 'whenYouSendDelete', |
||
31 | ]; |
||
32 | } |
||
33 | |||
34 | 14 | public static function getForgetMethods() |
|
37 | } |
||
38 | |||
39 | 1 | public static function getForgetArgs($method, $args) |
|
42 | } |
||
43 | } |
||
44 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.