protected function normalizeString($string)
    {
        if (false === strpos($string, '_')) {
            return $string;
        }

        return preg_replace_callback('/_([a-zA-Z0-9])/', function ($matches) {
            return strtoupper($matches[1]);
        }, $string);
    }
protected function normalizeString($string)
    {
        if (false === strpos($string, '_')) {
            return $string;
        }

        return preg_replace_callback('/_([a-zA-Z0-9])/', function ($matches) {
            return strtoupper($matches[1]);
        }, $string);
    }
protected function normalizeString ( $ string ) { if ( false === strpos ( $ string , '_' ) ) { return $ string ; } return preg_replace_callback ( '/_([a-zA-Z0-9])/' , function ( $ matches ) { return strtoupper ( $ matches [ 1 ] ) ; } , $ string ) ; }
Normalizes a string.

@param string $string

@return string
Normalizes a string .