| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | 7 | protected function doClassify($string) |
|
| 21 | { |
||
| 22 | 7 | $partsNamespace = explode('\\', $string); |
|
| 23 | 7 | $return = []; |
|
| 24 | 7 | foreach ($partsNamespace as $partNamespace) { |
|
| 25 | 7 | $parts = explode("-", $partNamespace); |
|
| 26 | 7 | $parts = array_map([$this, "camelize"], $parts); |
|
| 27 | |||
| 28 | 7 | $return[] = implode("_", $parts); |
|
| 29 | } |
||
| 30 | 7 | return implode('\\', $return); |
|
| 31 | } |
||
| 33 |