示例#1
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());
     $this->setFiles($this->getVcsAdapter()->getAffectedFiles());
     $this->helperSet = new HelperSet();
     $this->initHelperSet();
 }
示例#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());
 }