Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 8 |
Ratio | 100 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
77 | 1 | View Code Duplication | public function toPascal($string) |
78 | { |
||
79 | 1 | $stringArray = explode('_', $string); |
|
80 | 1 | for ($i = 0; $i < count($stringArray);$i++){ |
|
81 | 1 | $stringArray[$i] = $this->upperFirstLetter($stringArray[$i]); |
|
82 | } |
||
83 | 1 | return implode('', $stringArray); |
|
84 | } |
||
85 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.