Further cleanup for #384

This commit is contained in:
Dan Cryer 2014-05-02 17:38:43 +01:00
parent f0d35605b6
commit c164295170
3 changed files with 4 additions and 7 deletions

View file

@ -148,12 +148,9 @@ class ProjectController extends \PHPCI\Controller
$method = $this->request->getMethod();
$pub = null;
$values = array();
$values = $this->getParams();
if ($method == 'POST') {
$values = $this->getParams();
$pub = null;
} else {
if ($method != 'POST') {
$sshKey = new SshKey();
$key = $sshKey->generate();

View file

@ -54,4 +54,4 @@ class Github
return $rtn;
}
}
}

View file

@ -43,4 +43,4 @@ class SshKey
return $canGenerateKeys;
}
}
}