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 |
||
33 | protected function buildParamString($param) |
||
34 | { |
||
35 | return sprintf( |
||
36 | '%s%s %s%s%s', |
||
37 | (isset($param['choice'])) ? '[ ' : '', |
||
38 | $param['type'], |
||
39 | $param['parameter'], |
||
40 | isset($param['initializer']) ? sprintf(' = %s', $param['initializer']) : '', |
||
41 | (isset($param['choice'])) ? ' ]' : '' |
||
42 | ); |
||
43 | } |
||
44 | } |
||
45 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.