SonarQube code smells resolve #24
continuous-integration/drone/push Build is passing Details

LoginModification
Alexis 2 years ago
parent eeb1f7b552
commit ad69255b81

@ -71,9 +71,9 @@ class GatewayListResponseOfCandidate
$idListQuestion = $this->connection->lastInsertId(); $idListQuestion = $this->connection->lastInsertId();
for($i = 0; $i < count($answer); $i++) for ($i = 0; $i < count($answer); $i++) {
{ $question = $gatewayQuestion->getQuestionContentById($id[$i]);
$idResponse = $gatewayResponse->insertResponse($gatewayQuestion->getQuestionContentById($id[$i]), $answer[$i], $category[$i]); $idResponse = $gatewayResponse->insertResponse($question, $answer[$i], $category[$i]);
$query = "INSERT INTO Submit (responsesCandidate, response) VALUES(:responsesCandidate, :response)"; $query = "INSERT INTO Submit (responsesCandidate, response) VALUES(:responsesCandidate, :response)";
$this->connection->executeQuery($query, array( $this->connection->executeQuery($query, array(

Loading…
Cancel
Save