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;
    }
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;
    }
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 ; }
Retrieves the templates to be used by analyzing the options and the configuration.

@param InputInterface $input

@return string[]
Retrieves the templates to be used by analyzing the options and the configuration .