original_string: public function getTemplate($name)
      {
          if (!isset($this->templates[$name])) {
              throw new MissingTemplateException(sprintf('Unable to get template for "%s", there is no such template configured.', $name));
          }
  
          $template = (string) $this->templates[$name];
          if ('' === $template) {
              throw new MissingTemplateException(sprintf('Unable to get template for "%s", it seems the template value is empty. Make sure you enabled the proper section and configured a proper value.', $name));
          }
  
          return $template;
      }
code: public function getTemplate($name)
      {
          if (!isset($this->templates[$name])) {
              throw new MissingTemplateException(sprintf('Unable to get template for "%s", there is no such template configured.', $name));
          }
  
          $template = (string) $this->templates[$name];
          if ('' === $template) {
              throw new MissingTemplateException(sprintf('Unable to get template for "%s", it seems the template value is empty. Make sure you enabled the proper section and configured a proper value.', $name));
          }
  
          return $template;
      }
code_tokens: public function getTemplate ( $ name ) { if ( ! isset ( $ this -> templates [ $ name ] ) ) { throw new MissingTemplateException ( sprintf ( 'Unable to get template for "%s", there is no such template configured.' , $ name ) ) ; } $ template = ( string ) $ this -> templates [ $ name ] ; if ( '' === $ template ) { throw new MissingTemplateException ( sprintf ( 'Unable to get template for "%s", it seems the template value is empty. Make sure you enabled the proper section and configured a proper value.' , $ name ) ) ; } return $ template ; }
docstring: Get the View template for the given config-name.
  
  @param string $name
  
  @return string
docstring_tokens: Get the View template for the given config - name .