Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 8 |
Ratio | 100 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
64 | 1 | View Code Duplication | public function toCamel($string) |
65 | { |
||
66 | 1 | $stringArray = explode('_', $string); |
|
67 | 1 | for ($i = 1; $i < count($stringArray);$i++){ |
|
68 | 1 | $stringArray[$i] = $this->upperFirstLetter($stringArray[$i]); |
|
69 | } |
||
70 | 1 | return implode('', $stringArray); |
|
71 | } |
||
72 | |||
85 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.