/** * Validates a given SCM, if it is not available or unknown will return 'none' instead * * @param string $scm Source Code Management * @return string Valid SCM */ public static function validateSCM($scm) { return SCMHelper::getSCM($scm) ? SCMHelper::getSCM($scm) : 'none'; }
/** * @see Page::readData() */ public function readData() { parent::readData(); $this->availableSCM = SCMHelper::getSCM(); }