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