Correction error
continuous-integration/drone/push Build is passing Details

pull/81/head
DahmaneYanis 1 year ago
parent 1d995eba88
commit 5dea14a5e8

@ -85,7 +85,7 @@ class TeamGateway {
* Undocumented function
*
* @param integer $user
* @return array<Team>
* @return array<array<string, mixed>>
*/
public function getAll(int $user): array {
return $this->con->fetch("SELECT * FROM Team", []);

@ -61,6 +61,10 @@ class TacticModel {
/**
* Return the nb last tactics
*
* @param integer $nb
* @param integer $ownerId
* @return array<array<string,mixed>>
*/
public function getLast(int $nb, int $ownerId): array {
return $this->tactics->getLast($nb, $ownerId);
@ -70,7 +74,7 @@ class TacticModel {
* Get all the tactics of the owner
*
* @param integer $ownerId
* @return array|null
* @return array<array<string,mixed>>
*/
public function getAll(int $ownerId): ?array {
return $this->tactics->getAll($ownerId);

@ -79,7 +79,13 @@ class TeamModel {
return $teamId;
}
public function getAll(int $user) {
/**
* Get all user's teams
*
* @param integer $user
* @return array<array<string, mixed>>
*/
public function getAll(int $user) : array {
return $this->teams->getAll($user);
}

Loading…
Cancel
Save