GrumPHP\Console\Command\Git\DeInitCommand::execute PHP Method

execute() public method

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
return integer | void
    public function execute(InputInterface $input, OutputInterface $output)
    {
        $gitHooksPath = $this->paths()->getGitHooksDir();
        foreach (InitCommand::$hooks as $hook) {
            $hookPath = $gitHooksPath . $hook;
            if (!$this->filesystem->exists($hookPath)) {
                continue;
            }
            $this->filesystem->remove($hookPath);
        }
        $output->writeln('<fg=yellow>GrumPHP stopped sniffing your commits! Too bad ...<fg=yellow>');
    }