From 968ff5261e3cac9e1f5201c990f2c57941e8f28b Mon Sep 17 00:00:00 2001 From: Alexis Date: Tue, 7 Feb 2023 14:26:34 +0100 Subject: [PATCH] SonarQube code smells resolve #26 --- Source/API/script/Gateway/GatewayQuestion.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/API/script/Gateway/GatewayQuestion.php b/Source/API/script/Gateway/GatewayQuestion.php index ecd22d4..5c4f026 100644 --- a/Source/API/script/Gateway/GatewayQuestion.php +++ b/Source/API/script/Gateway/GatewayQuestion.php @@ -110,7 +110,8 @@ class GatewayQuestion for ($i = 0; $i < count($listQuestions); $i++) { if ($listQuestions[$i]["type"] != "BusinessClass/TextQuestion") { - $possibleResponses = $gatewayPossibleResponse->getPossibleResponseByQuestion($listQuestions[$i]["id"]); //$this->connection->getResults(); + $idQuestion = $listQuestions[$i]["id"]; + $possibleResponses = $gatewayPossibleResponse->getPossibleResponseByQuestion($idQuestion); $tmpTabKeyword = []; $tmpTabPossibleResponse = []; @@ -121,8 +122,7 @@ class GatewayQuestion } $possibleResponsesContent[] = $tmpTabPossibleResponse; $keywordsResponses[] = $tmpTabKeyword; - } - else { + } else { $possibleResponsesContent[] = null; $keywordsResponses[] = null; }