protected function parseGitUrl($gitUrl) { if (!preg_match('/^([a-z0-9]{12,})@git\\.(([a-z\\-]+\\.)?' . preg_quote($this->config->get('detection.git_domain')) . '):\\1\\.git$/', $gitUrl, $matches)) { return false; } return ['id' => $matches[1], 'host' => $matches[2]]; }