getGitKey(); switch($this->getType() . '.' . (!empty($key) ? 'ssh' : 'http')) { case 'github.ssh': return 'git@github.com:' . $this->getReference() . '.git'; case 'github.http': return 'https://github.com/' . $this->getReference() . '.git'; case 'bitbucket.ssh': return 'git@bitbucket.org:' . $this->getReference() . '.git'; case 'bitbucket.http': return 'https://bitbucket.org/' . $this->getReference() . '.git'; } } }