original_string: public function view($template, $data = [])
      {
          $html = ViewService::getEngine()->render($template, $data);
          $this->message->setBody($html, 'text/html');
          return $this;
      }
code: public function view($template, $data = [])
      {
          $html = ViewService::getEngine()->render($template, $data);
          $this->message->setBody($html, 'text/html');
          return $this;
      }
code_tokens: public function view ( $ template , $ data = [ ] ) { $ html = ViewService :: getEngine ( ) -> render ( $ template , $ data ) ; $ this -> message -> setBody ( $ html , 'text/html' ) ; return $ this ; }
docstring: set message body with twig template
  
  @param string $template
  @param array  $data
  @return $this
docstring_tokens: set message body with twig template