Some documentation and bugfixes

This commit is contained in:
Jeroen De Meerleer 2019-05-30 08:33:16 +02:00
parent a2842a24d2
commit 34a5696ff3
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6
3 changed files with 3 additions and 5 deletions

View File

@ -70,7 +70,7 @@ abstract class Player
/** /**
* @return string[] * @return string[]
*/ */
public function getIds(): array public function getIds(): ?array
{ {
return $this->Ids; return $this->Ids;
} }
@ -88,7 +88,7 @@ abstract class Player
/** /**
* @return int[] * @return int[]
*/ */
public function getElos(): array public function getElos(): ?array
{ {
return $this->Elos; return $this->Elos;
} }

View File

@ -458,8 +458,6 @@ class Pairtwo6 extends Pairtwo6Model implements ReaderInterface
$player->setBinaryData("TieMatch", $this->readData('Int', substr($swscontents, $offset, $length))); $player->setBinaryData("TieMatch", $this->readData('Int', substr($swscontents, $offset, $length)));
$offset += $length; $offset += $length;
$player->setElos($elos);
$player->setIds($ids);
$this->getTournament()->addPlayer($player); $this->getTournament()->addPlayer($player);
} }
// PlayerNames // PlayerNames

View File

@ -264,7 +264,7 @@ class Tournament extends Tiebreaks
/** /**
* @return float|bool * @return float|null
*/ */
private function calculateTiebreak(Tiebreak $tiebreak, Player $player, int $tbkey = 0): ?float private function calculateTiebreak(Tiebreak $tiebreak, Player $player, int $tbkey = 0): ?float
{ {