original_string: public function process(TemplateInterface $template)
      {
          // Create a new intervention image object
          $image = $this->imageManager->make($this->image);
  
          $image = $template->process($image);
  
          // Encode the image if it hasn't
          // been encoded in the template.
          if (!$image->isEncoded()) {
              $image->encode();
          }
  
          return $image;
      }
code: public function process(TemplateInterface $template)
      {
          // Create a new intervention image object
          $image = $this->imageManager->make($this->image);
  
          $image = $template->process($image);
  
          // Encode the image if it hasn't
          // been encoded in the template.
          if (!$image->isEncoded()) {
              $image->encode();
          }
  
          return $image;
      }
code_tokens: public function process ( TemplateInterface $ template ) { // Create a new intervention image object $ image = $ this -> imageManager -> make ( $ this -> image ) ; $ image = $ template -> process ( $ image ) ; // Encode the image if it hasn't // been encoded in the template. if ( ! $ image -> isEncoded ( ) ) { $ image -> encode ( ) ; } return $ image ; }
docstring: Run the named template against the image.
  
  @param string $template The template to run
  
  @return Intervention\Image\Image The processed image
docstring_tokens: Run the named template against the image .