conf->getVal('scm', 'git')) { case 'svn': return new IDF_Svn($request->conf->getVal('svn_repository'), $request->conf->getVal('svn_username'), $request->conf->getVal('svn_password')); case 'git': default: return new IDF_Git($request->project->getGitRepository()); } } }