Code style fixups

This commit is contained in:
Jeroen De Meerleer 2019-09-28 21:09:56 +02:00
parent 2eb570ce7c
commit 5314bc47f2
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6
2 changed files with 7 additions and 3 deletions

View File

@ -83,7 +83,6 @@ class Round
return $this;
}
/**
* Returns an array of pairings where the player is bye
*
@ -101,7 +100,6 @@ class Round
return $byePairings;
}
/**
* Returns an array of pairings where the player is absent
*
@ -139,6 +137,7 @@ class Round
$this->Date = $Date;
return $this;
}
/**
* Returns an array of all games for the round
*
@ -148,6 +147,7 @@ class Round
{
return $this->Games;
}
/**
* Sets an array of all games for the round
*
@ -159,6 +159,7 @@ class Round
$this->Games = $Games;
return $this;
}
/**
* Returns the round number of the round
*
@ -168,6 +169,7 @@ class Round
{
return $this->RoundNo;
}
/**
* Sets the round number of the round
*
@ -179,6 +181,7 @@ class Round
$this->RoundNo = $RoundNo;
return $this;
}
/**
* Returns an array of all pairings for the round
*
@ -188,6 +191,7 @@ class Round
{
return $this->Pairings;
}
/**
* Sets an array of all pairings for the round
*

View File

@ -365,7 +365,7 @@ class Tournament
$tosortplayers = $sortedplayers;
$sortedplayers = [];
foreach ($tosortplayers as $groupkey=>$sortedplayerselem) {
usort($tosortplayers[$groupkey], $this->SortTiebreak($tbkey));
usort($tosortplayers[$groupkey], $this->sortTiebreak($tbkey));
foreach ($tosortplayers[$groupkey] as $playerkey => $player) {
if (!is_null($player->getTiebreaks()[$tbkey])) {
if ($playerkey != 0) {