original_string: protected function getTemplates(InputInterface $input)
      {
          /** @var ConfigurationHelper $configurationHelper */
          $configurationHelper = $this->getHelper('phpdocumentor_configuration');
  
          $templates = $input->getOption('template');
          if (!$templates) {
              /** @var Template[] $templatesFromConfig */
              $templatesFromConfig = $configurationHelper->getConfigValueFromPath('transformations/templates');
              foreach ($templatesFromConfig as $template) {
                  $templates[] = $template->getName();
              }
          }
  
          if (!$templates) {
              $templates = array('clean');
          }
  
          return $templates;
      }
code: protected function getTemplates(InputInterface $input)
      {
          /** @var ConfigurationHelper $configurationHelper */
          $configurationHelper = $this->getHelper('phpdocumentor_configuration');
  
          $templates = $input->getOption('template');
          if (!$templates) {
              /** @var Template[] $templatesFromConfig */
              $templatesFromConfig = $configurationHelper->getConfigValueFromPath('transformations/templates');
              foreach ($templatesFromConfig as $template) {
                  $templates[] = $template->getName();
              }
          }
  
          if (!$templates) {
              $templates = array('clean');
          }
  
          return $templates;
      }
code_tokens: protected function getTemplates ( InputInterface $ input ) { /** @var ConfigurationHelper $configurationHelper */ $ configurationHelper = $ this -> getHelper ( 'phpdocumentor_configuration' ) ; $ templates = $ input -> getOption ( 'template' ) ; if ( ! $ templates ) { /** @var Template[] $templatesFromConfig */ $ templatesFromConfig = $ configurationHelper -> getConfigValueFromPath ( 'transformations/templates' ) ; foreach ( $ templatesFromConfig as $ template ) { $ templates [ ] = $ template -> getName ( ) ; } } if ( ! $ templates ) { $ templates = array ( 'clean' ) ; } return $ templates ; }
docstring: Retrieves the templates to be used by analyzing the options and the configuration.
  
  @param InputInterface $input
  
  @return string[]
docstring_tokens: Retrieves the templates to be used by analyzing the options and the configuration .