GrumPHP\Console\Command\Git\PreCommitCommand::execute PHP Метод

execute() публичный Метод

public execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer | void
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
Результат integer | void
    public function execute(InputInterface $input, OutputInterface $output)
    {
        $io = new ConsoleIO($input, $output);
        $files = $this->getCommittedFiles($io);
        $context = new GitPreCommitContext($files);
        $skipSuccessOutput = (bool) $input->getOption('skip-success-output');
        $output->writeln('<fg=yellow>GrumPHP detected a pre-commit command.</fg=yellow>');
        return $this->taskRunner()->run($output, $context, $skipSuccessOutput);
    }