/** * Configure what we are going to execute. * @method configureExecute * @return void; */ private function configureExecute() { $bypassQuestion = new ConfirmationQuestion('<info>Bypass hook and proceed with commit? (n) </info>', false); if ($this->questionHelper->ask($this->input, $this->output, $bypassQuestion)) { $this->output->writeln('<comment>Bypassing hook</comment>'); return; } // before this step we should look for a config in the repo. $tasksQuestion = new ChoiceQuestion('<info>Which tasks would you like to run?</info>', ['PHPLINT', 'PHPCSFIXER', 'PHPCS', 'PHPMD', 'PHPUNIT'], '0,1,2,3,4'); $tasksQuestion->setMultiSelect(true); $this->tasks = $this->questionHelper->ask($this->input, $this->output, $tasksQuestion); }