src/Router/ControllerFactory.php
protected function studlyCase($string)
    {
        return preg_replace_callback('/(?:^|(\w)-)(\w)/', function($match) {
            return $match[1] . strtoupper($match[2]);
        }, strtolower(addcslashes($string, '\\')));
    }
protected function studlyCase($string)
    {
        return preg_replace_callback('/(?:^|(\w)-)(\w)/', function($match) {
            return $match[1] . strtoupper($match[2]);
        }, strtolower(addcslashes($string, '\\')));
    }
protected function studlyCase ( $ string ) { return preg_replace_callback ( '/(?:^|(\w)-)(\w)/' , function ( $ match ) { return $ match [ 1 ] . strtoupper ( $ match [ 2 ] ) ; } , strtolower ( addcslashes ( $ string , '\\' ) ) ) ; }
Turn kabab-case into StudlyCase.

@internal Jasny\studlycase isn't used because it's to tolerent, which might lead to security issues.

@param string $string
@return string
Turn kabab - case into StudlyCase .