SebastianBergmann\PHPCPD\CLI\Application::doRun PHP Method

doRun() public method

Runs the current application.
public doRun ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer
$input Symfony\Component\Console\Input\InputInterface An Input instance
$output Symfony\Component\Console\Output\OutputInterface An Output instance
return integer 0 if everything went fine, or an error code
    public function doRun(InputInterface $input, OutputInterface $output)
    {
        $this->disableXdebug();
        if (!$input->hasParameterOption('--quiet')) {
            $output->write(sprintf("phpcpd %s by Sebastian Bergmann.\n\n", $this->getVersion()));
        }
        if ($input->hasParameterOption('--version') || $input->hasParameterOption('-V')) {
            exit;
        }
        if (!$input->getFirstArgument()) {
            $input = new ArrayInput(['--help']);
        }
        parent::doRun($input, $output);
    }