/** * @param OutputInterface $output * @param array $files * @param string $needle * * @throws InvalidCodingStandardException */ public function run(OutputInterface $output, array $files, $needle) { if ($this->isEnabled()) { $this->codeSnifferHandler->setOutput($output); $this->codeSnifferHandler->setFiles($files); $this->codeSnifferHandler->setNeddle($needle); $this->codeSnifferHandler->run(); } }
/** * @param OutputInterface $output * @param array $files * @param string $needle * * @throws InvalidCodingStandardException */ public function run(OutputInterface $output, array $files, $needle) { $data = $this->preCommitConfig->extraOptions($this->commandName()); if (true === $data['enabled']) { $this->codeSnifferHandler->setOutput($output); $this->codeSnifferHandler->setFiles($files); $this->codeSnifferHandler->setNeddle($needle); $this->codeSnifferHandler->setStandard($data['standard']); $this->codeSnifferHandler->run(); } }