original_string: protected function createTemplate($type)
      {
          $class = $this->resolveTypeClassName($type);
  
          if (!($template = $class::inTheme($this->theme))) {
              throw new ApplicationException(trans('cms::lang.template.not_found'));
          }
  
          return $template;
      }
code: protected function createTemplate($type)
      {
          $class = $this->resolveTypeClassName($type);
  
          if (!($template = $class::inTheme($this->theme))) {
              throw new ApplicationException(trans('cms::lang.template.not_found'));
          }
  
          return $template;
      }
code_tokens: protected function createTemplate ( $ type ) { $ class = $ this -> resolveTypeClassName ( $ type ) ; if ( ! ( $ template = $ class :: inTheme ( $ this -> theme ) ) ) { throw new ApplicationException ( trans ( 'cms::lang.template.not_found' ) ) ; } return $ template ; }
docstring: Creates a new template of a given type
  @param string $type
  @return mixed
docstring_tokens: Creates a new template of a given type