original_string: private function checkTemplate($template)
      {
          if ( ! is_string($template)) {
              $type = gettype($template);
              throw new Exceptions\InvalidTypeException(
                  "The default template name must be a string, $type given."
              );
          }
  
          $template = strtolower(trim($template));
  
          if ( ! array_key_exists($template, $this->supported)) {
              throw new Exceptions\InvalidTemplateException(
                  "The template [$template] is not supported."
              );
          }
      }
code: private function checkTemplate($template)
      {
          if ( ! is_string($template)) {
              $type = gettype($template);
              throw new Exceptions\InvalidTypeException(
                  "The default template name must be a string, $type given."
              );
          }
  
          $template = strtolower(trim($template));
  
          if ( ! array_key_exists($template, $this->supported)) {
              throw new Exceptions\InvalidTemplateException(
                  "The template [$template] is not supported."
              );
          }
      }
code_tokens: private function checkTemplate ( $ template ) { if ( ! is_string ( $ template ) ) { $ type = gettype ( $ template ) ; throw new Exceptions \ InvalidTypeException ( "The default template name must be a string, $type given." ) ; } $ template = strtolower ( trim ( $ template ) ) ; if ( ! array_key_exists ( $ template , $ this -> supported ) ) { throw new Exceptions \ InvalidTemplateException ( "The template [$template] is not supported." ) ; } }
docstring: Check Template.
  
  @param  string  $template
  
  @throws Exceptions\InvalidTemplateException
  @throws Exceptions\InvalidTypeException
docstring_tokens: Check Template .