Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | public static function getSubscribingMethods() |
||
18 | { |
||
19 | $methods = []; |
||
20 | $formats = ['json']; |
||
21 | |||
22 | foreach ($formats as $format) { |
||
23 | $methods[] = [ |
||
24 | 'type' => 'Id', |
||
25 | 'format' => $format, |
||
26 | 'direction' => GraphNavigator::DIRECTION_SERIALIZATION, |
||
27 | 'method' => 'serializeId', |
||
28 | ]; |
||
29 | } |
||
30 | |||
31 | return $methods; |
||
32 | } |
||
33 | |||
44 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.