/** * {@inheritdoc} */ protected function loadValidator($name, array $options = array()) { $omitted = $this->getOmittedValidators(); if (true === $omitted || isset($omitted[$name])) { $name = 'Stub'; } return parent::loadValidator($name, $options); }
/** * Set adapter data from config * * @param array|string $vcsType * @throws \PreCommit\Exception */ public function __construct($vcsType) { parent::__construct($vcsType); $this->setCodePath($this->getVcsAdapter()->getCodePath()); }