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

        $offset = strspn($string, '_');
        if ($offset) {
            $underscorePrefix = substr($string, 0, $offset);
            $string = substr($string, $offset);
        } else {
            $underscorePrefix = '';
        }

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

        $offset = strspn($string, '_');
        if ($offset) {
            $underscorePrefix = substr($string, 0, $offset);
            $string = substr($string, $offset);
        } else {
            $underscorePrefix = '';
        }

        return $underscorePrefix.parent::normalizeString($string);
    }
protected function normalizeString ( $ string ) { if ( false === strpos ( $ string , '_' ) ) { return $ string ; } $ offset = strspn ( $ string , '_' ) ; if ( $ offset ) { $ underscorePrefix = substr ( $ string , 0 , $ offset ) ; $ string = substr ( $ string , $ offset ) ; } else { $ underscorePrefix = '' ; } return $ underscorePrefix . parent :: normalizeString ( $ string ) ; }
Normalizes a string while leaving leading underscores unchanged.

@param string $string

@return string
Normalizes a string while leaving leading underscores unchanged .