private function filterName($name)
    {
        $name = str_replace(['-', '_'], ' ', $name);
        $words = explode(' ', $name);
        $filtered = '';
        foreach ($words as $word) {
            $filtered .= ucfirst($word);
        }
        return $filtered;
    }
private function filterName($name)
    {
        $name = str_replace(['-', '_'], ' ', $name);
        $words = explode(' ', $name);
        $filtered = '';
        foreach ($words as $word) {
            $filtered .= ucfirst($word);
        }
        return $filtered;
    }
private function filterName ( $ name ) { $ name = str_replace ( [ '-' , '_' ] , ' ' , $ name ) ; $ words = explode ( ' ' , $ name ) ; $ filtered = '' ; foreach ( $ words as $ word ) { $ filtered .= ucfirst ( $ word ) ; } return $ filtered ; }
Filters the controller class name

@param string $name

@return string
Filters the controller class name