| Total Complexity | 3 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 4 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | class TestCaseHelper { |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Get dispatch() function for an event dispatcher. |
||
| 27 | * |
||
| 28 | * @return callable Returns dispatch() function for an event dispatcher. |
||
| 29 | */ |
||
| 30 | public static function getEventDispatcherDispatchFunction(): callable { |
||
| 31 | |||
| 32 | return function(Event $event, string $eventName = null): Event { |
||
|
|
|||
| 33 | return $event; |
||
| 34 | }; |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Get generate() function for a router. |
||
| 39 | * |
||
| 40 | * @return callable Returns generate() function for a router. |
||
| 41 | */ |
||
| 42 | public static function getRouterGenerateFunction(): callable { |
||
| 46 | }; |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Get a trans() function for a translator. |
||
| 51 | * |
||
| 52 | * @return callable Returns the trans() function for a translator. |
||
| 53 | */ |
||
| 54 | public static function getTranslatorTransFunction(): callable { |
||
| 58 | }; |
||
| 59 | } |
||
| 61 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.