Conditions | 4 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 20 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | protected function buildParamString($param) |
||
27 | { |
||
28 | return sprintf( |
||
29 | '%s%s %s%s%s', |
||
30 | (isset($param['choice'])) ? '[ ' : '', |
||
31 | $param['type'], |
||
32 | $param['parameter'], |
||
33 | isset($param['initializer']) ? sprintf(' = %s', $param['initializer']) : '', |
||
34 | (isset($param['choice'])) ? ' ]' : '' |
||
35 | ); |
||
36 | } |
||
37 | } |
||
38 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.