| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | 1 | public function toTag($string, $separator = '_') |
|
| 32 | { |
||
| 33 | 1 | $string[0] = strtolower($string[0]); |
|
| 34 | 1 | foreach (str_split($this->upperLetters) as $upperLetter) { |
|
| 35 | 1 | $string = str_replace($upperLetter, $separator . strtolower($upperLetter), $string); |
|
| 36 | } |
||
| 37 | 1 | return $string; |
|
| 38 | } |
||
| 39 | |||
| 85 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.