Further cleanup for #384
This commit is contained in:
parent
f0d35605b6
commit
c164295170
|
@ -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();
|
||||
|
||||
|
|
|
@ -54,4 +54,4 @@ class Github
|
|||
|
||||
return $rtn;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -43,4 +43,4 @@ class SshKey
|
|||
|
||||
return $canGenerateKeys;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue