original_string: protected function locateTemplate(FileLocatorInterface $locator, TemplateReference $template, array &$templates)
      {
          $templates[$template->getLogicalName()] = $locator->locate($template->getPath());
      }
code: protected function locateTemplate(FileLocatorInterface $locator, TemplateReference $template, array &$templates)
      {
          $templates[$template->getLogicalName()] = $locator->locate($template->getPath());
      }
code_tokens: protected function locateTemplate ( FileLocatorInterface $ locator , TemplateReference $ template , array & $ templates ) { $ templates [ $ template -> getLogicalName ( ) ] = $ locator -> locate ( $ template -> getPath ( ) ) ; }
docstring: Locates and appends template to an array
  
  @param FileLocatorInterface $locator
  @param TemplateReference    $template
  @param array                $templates
docstring_tokens: Locates and appends template to an array