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