original_string: public function getPath()
      {
          $controller = str_replace('\\', '/', $this->get('controller'));
  
          $path = (empty($controller) ? '' : $controller.'/').$this->get('name').'.'.$this->get('format').'.'.$this->get('engine');
  
          return empty($this->parameters['bundle']) ? 'views/'.$path : '@'.$this->get('bundle').'/Resources/views/'.$path;
      }
code: public function getPath()
      {
          $controller = str_replace('\\', '/', $this->get('controller'));
  
          $path = (empty($controller) ? '' : $controller.'/').$this->get('name').'.'.$this->get('format').'.'.$this->get('engine');
  
          return empty($this->parameters['bundle']) ? 'views/'.$path : '@'.$this->get('bundle').'/Resources/views/'.$path;
      }
code_tokens: public function getPath ( ) { $ controller = str_replace ( '\\' , '/' , $ this -> get ( 'controller' ) ) ; $ path = ( empty ( $ controller ) ? '' : $ controller . '/' ) . $ this -> get ( 'name' ) . '.' . $ this -> get ( 'format' ) . '.' . $ this -> get ( 'engine' ) ; return empty ( $ this -> parameters [ 'bundle' ] ) ? 'views/' . $ path : '@' . $ this -> get ( 'bundle' ) . '/Resources/views/' . $ path ; }
docstring: Returns the path to the template
  - as a path when the template is not part of a bundle
  - as a resource when the template is part of a bundle.
  
  @return string A path to the template or a resource
docstring_tokens: Returns the path to the template - as a path when the template is not part of a bundle - as a resource when the template is part of a bundle .