protected function normalizeName($name)
    {
        if ($this->files->extension($name) === $this->extension) {
            $name = substr($name, 0, - (strlen($this->extension) + 1));
        }

        return $name;
    }
protected function normalizeName($name)
    {
        if ($this->files->extension($name) === $this->extension) {
            $name = substr($name, 0, - (strlen($this->extension) + 1));
        }

        return $name;
    }
protected function normalizeName ( $ name ) { if ( $ this -> files -> extension ( $ name ) === $ this -> extension ) { $ name = substr ( $ name , 0 , - ( strlen ( $ this -> extension ) + 1 ) ) ; } return $ name ; }
Normalize the Twig template name to a name the ViewFinder can use

@param  string $name Template file name.
@return string The parsed name
Normalize the Twig template name to a name the ViewFinder can use