Code smells and bugs resolve 5
continuous-integration/drone/push Build is passing Details

master
Alexis 2 years ago
parent 96cb672063
commit 7663ee93ac

@ -49,7 +49,8 @@ class ControllerCandidate
require_once($rep.$views['thanks']); require_once($rep.$views['thanks']);
} }
public function login(): void { public function login(): void
{
global $rep,$views; global $rep,$views;
try { try {
$model= new ModelCandidate(); $model= new ModelCandidate();

@ -59,7 +59,7 @@ class FrontController
foreach ($this->rights[$role] as $controllerName) { foreach ($this->rights[$role] as $controllerName) {
if (strcmp($controllerName,$target[0])===0) { if (strcmp($controllerName, $target[0])===0) {
$controllerClass = '\Controller\\' . $target[0]; $controllerClass = '\Controller\\' . $target[0];
$controller = new $controllerClass(); $controller = new $controllerClass();
$controller->{$target[1]}($params); $controller->{$target[1]}($params);
@ -87,7 +87,7 @@ class FrontController
$this->router->map('POST', '/submitForm', array($controller['Candidate'], 'submitForm'), 'submitForm'); $this->router->map('POST', '/submitForm', array($controller['Candidate'], 'submitForm'), 'submitForm');
$this->router->map('POST', '/addQuestion', array($controller['Admin'], 'addQuestion'), 'addQuestion'); $this->router->map('POST', '/addQuestion', array($controller['Admin'], 'addQuestion'), 'addQuestion');
$this->router->map('POST', '/addResponse', array($controller['Admin'], 'addResponse'), 'addResponse'); $this->router->map('POST', '/addResponse', array($controller['Admin'], 'addResponse'), 'addResponse');
$this->router->map('POST', '/continueResponse', array($controller['Admin'], 'continueResponse'),'continueResponse'); $this->router->map('POST', '/continueResponse', array($controller['Admin'], 'continueResponse'), 'continueResponse');
$this->router->map('POST', '/createForm', array($controller['Admin'], 'createForm'), 'createForm'); $this->router->map('POST', '/createForm', array($controller['Admin'], 'createForm'), 'createForm');
$this->router->map('POST', '/addKeyword', array($controller['Admin'], 'addKeyword'), 'addKeyword'); $this->router->map('POST', '/addKeyword', array($controller['Admin'], 'addKeyword'), 'addKeyword');
$this->router->map('GET', '/goToAdmin', array($controller['Admin'], 'goToAdmin'), 'goToAdmin'); $this->router->map('GET', '/goToAdmin', array($controller['Admin'], 'goToAdmin'), 'goToAdmin');

Loading…
Cancel
Save