public function prepareName($name)
    {
        $name = empty($name) ? 'index' : $name;
        $name = strtolower($name);
        $name = str_replace(['-', '_'], ' ', $name);
        $name = ucwords($name);
        $name = str_replace(' ', '', $name);
        
        return $name;
    }
public function prepareName($name)
    {
        $name = empty($name) ? 'index' : $name;
        $name = strtolower($name);
        $name = str_replace(['-', '_'], ' ', $name);
        $name = ucwords($name);
        $name = str_replace(' ', '', $name);
        
        return $name;
    }
public function prepareName ( $ name ) { $ name = empty ( $ name ) ? 'index' : $ name ; $ name = strtolower ( $ name ) ; $ name = str_replace ( [ '-' , '_' ] , ' ' , $ name ) ; $ name = ucwords ( $ name ) ; $ name = str_replace ( ' ' , '' , $ name ) ; return $ name ; }
Prepare the name.

@param string $name to prepare.

@return string as the prepared name.
Prepare the name .