N98\Magento\Command\MagentoConnect\ValidateExtensionCommand::_optionOutput PHP Method

_optionOutput() protected method

protected _optionOutput ( string $text, string $type, Symfony\Component\Console\Output\OutputInterface $output, Symfony\Component\Console\Input\InputInterface $input )
$text string
$type string
$output Symfony\Component\Console\Output\OutputInterface
$input Symfony\Component\Console\Input\InputInterface
    protected function _optionOutput($text, $type, $output, $input)
    {
        $type = is_array($type) ? $type : array($type);
        $skipHash = $input->getOption('skip-hash');
        $skipFile = $input->getOption('skip-file');
        $fullReport = $input->getOption('full-report');
        if (in_array('full-report', $type) && !$fullReport) {
            return;
        }
        if (in_array('hash', $type) && $skipHash) {
            return;
        }
        if (in_array('file', $type) && $skipFile) {
            return;
        }
        $output->writeln($text);
    }