From eeb1f7b552f936131ad6bed48f0335b2c4e96cf3 Mon Sep 17 00:00:00 2001 From: Alexis Date: Tue, 7 Feb 2023 14:15:47 +0100 Subject: [PATCH] SonarQube code smells resolve #23 --- Source/API/script/Gateway/GatewayKeyword.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Source/API/script/Gateway/GatewayKeyword.php b/Source/API/script/Gateway/GatewayKeyword.php index 37bd310..d33f166 100644 --- a/Source/API/script/Gateway/GatewayKeyword.php +++ b/Source/API/script/Gateway/GatewayKeyword.php @@ -41,7 +41,7 @@ class GatewayKeyword public function getKeywordsContentByReference(int $id): array { - $query = "SELECT k.* FROM Keyword k, Reference r + $query = "SELECT k.* FROM Keyword k, Reference r WHERE k.word = r.keyword AND r.possibleResponse = :id"; $this->connection->executeQuery($query, array( ':id' => array($id, PDO::PARAM_STR) @@ -49,11 +49,10 @@ class GatewayKeyword $tab = []; - foreach ($this->connection->getResults() as $result) - { + foreach ($this->connection->getResults() as $result) { $tab[] = $result["word"]; } return $tab; } -} \ No newline at end of file +}