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

LoginModification
Alexis 2 years ago
parent 99f9f15e6d
commit eeb1f7b552

@ -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;
}
}
}

Loading…
Cancel
Save