public static function expandComponentName($componentPath)
    {
        return trim(
            implode(
                ' ',
                array_map(
                    'ucwords', preg_split('/_+/', GeneralUtility::camelCaseToLowerCaseUnderscored($componentPath))
                )
            )
        ) ?: null;
    }
public static function expandComponentName($componentPath)
    {
        return trim(
            implode(
                ' ',
                array_map(
                    'ucwords', preg_split('/_+/', GeneralUtility::camelCaseToLowerCaseUnderscored($componentPath))
                )
            )
        ) ?: null;
    }
public static function expandComponentName ( $ componentPath ) { return trim ( implode ( ' ' , array_map ( 'ucwords' , preg_split ( '/_+/' , GeneralUtility :: camelCaseToLowerCaseUnderscored ( $ componentPath ) ) ) ) ) ? : null ; }
Prepare a component path

@param string $componentPath Component path

@return string Component name
Prepare a component path