original_string: public function loadTemplate($template)
      {
          if (!$this->isLoaded($identity = $this->findIdentity($template))) {
  
              if (!$this->supports($identity)) {
                  throw new \InvalidArgumentException(sprintf('Unsupported template "%s".', $identity->getName()));
              }
  
              $this->setLoaded($identity, $this->getLoader()->load($identity));
          }
  
          return $this->getLoaded($identity);
      }
code: public function loadTemplate($template)
      {
          if (!$this->isLoaded($identity = $this->findIdentity($template))) {
  
              if (!$this->supports($identity)) {
                  throw new \InvalidArgumentException(sprintf('Unsupported template "%s".', $identity->getName()));
              }
  
              $this->setLoaded($identity, $this->getLoader()->load($identity));
          }
  
          return $this->getLoaded($identity);
      }
code_tokens: public function loadTemplate ( $ template ) { if ( ! $ this -> isLoaded ( $ identity = $ this -> findIdentity ( $ template ) ) ) { if ( ! $ this -> supports ( $ identity ) ) { throw new \ InvalidArgumentException ( sprintf ( 'Unsupported template "%s".' , $ identity -> getName ( ) ) ) ; } $ this -> setLoaded ( $ identity , $ this -> getLoader ( ) -> load ( $ identity ) ) ; } return $ this -> getLoaded ( $ identity ) ; }
docstring: Try to load the given template
  
  @param mixed $template
  
  @return void
docstring_tokens: Try to load the given template