src/TemplatesCollection.php
public function selectTemplate($template)
    {
        if (is_null($template)) {
            return 'default';
        }

        if (!array_key_exists($template, $this->templates)) {
            throw new RuntimeException("Template \"{$template}\" is not registered");
        }

        return $template;
    }
public function selectTemplate($template)
    {
        if (is_null($template)) {
            return 'default';
        }

        if (!array_key_exists($template, $this->templates)) {
            throw new RuntimeException("Template \"{$template}\" is not registered");
        }

        return $template;
    }
public function selectTemplate ( $ template ) { if ( is_null ( $ template ) ) { return 'default' ; } if ( ! array_key_exists ( $ template , $ this -> templates ) ) { throw new RuntimeException ( "Template \"{$template}\" is not registered" ) ; } return $ template ; }
Find out template name from user input.

@param string|null $template

@return string
Find out template name from user input .