mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-11-22 06:26:57 +01:00
Code style fixups
This commit is contained in:
parent
2eb570ce7c
commit
5314bc47f2
@ -83,7 +83,6 @@ class Round
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns an array of pairings where the player is bye
|
* Returns an array of pairings where the player is bye
|
||||||
*
|
*
|
||||||
@ -101,7 +100,6 @@ class Round
|
|||||||
return $byePairings;
|
return $byePairings;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns an array of pairings where the player is absent
|
* Returns an array of pairings where the player is absent
|
||||||
*
|
*
|
||||||
@ -139,6 +137,7 @@ class Round
|
|||||||
$this->Date = $Date;
|
$this->Date = $Date;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns an array of all games for the round
|
* Returns an array of all games for the round
|
||||||
*
|
*
|
||||||
@ -148,6 +147,7 @@ class Round
|
|||||||
{
|
{
|
||||||
return $this->Games;
|
return $this->Games;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets an array of all games for the round
|
* Sets an array of all games for the round
|
||||||
*
|
*
|
||||||
@ -159,6 +159,7 @@ class Round
|
|||||||
$this->Games = $Games;
|
$this->Games = $Games;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the round number of the round
|
* Returns the round number of the round
|
||||||
*
|
*
|
||||||
@ -168,6 +169,7 @@ class Round
|
|||||||
{
|
{
|
||||||
return $this->RoundNo;
|
return $this->RoundNo;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the round number of the round
|
* Sets the round number of the round
|
||||||
*
|
*
|
||||||
@ -179,6 +181,7 @@ class Round
|
|||||||
$this->RoundNo = $RoundNo;
|
$this->RoundNo = $RoundNo;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns an array of all pairings for the round
|
* Returns an array of all pairings for the round
|
||||||
*
|
*
|
||||||
@ -188,6 +191,7 @@ class Round
|
|||||||
{
|
{
|
||||||
return $this->Pairings;
|
return $this->Pairings;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets an array of all pairings for the round
|
* Sets an array of all pairings for the round
|
||||||
*
|
*
|
||||||
|
@ -365,7 +365,7 @@ class Tournament
|
|||||||
$tosortplayers = $sortedplayers;
|
$tosortplayers = $sortedplayers;
|
||||||
$sortedplayers = [];
|
$sortedplayers = [];
|
||||||
foreach ($tosortplayers as $groupkey=>$sortedplayerselem) {
|
foreach ($tosortplayers as $groupkey=>$sortedplayerselem) {
|
||||||
usort($tosortplayers[$groupkey], $this->SortTiebreak($tbkey));
|
usort($tosortplayers[$groupkey], $this->sortTiebreak($tbkey));
|
||||||
foreach ($tosortplayers[$groupkey] as $playerkey => $player) {
|
foreach ($tosortplayers[$groupkey] as $playerkey => $player) {
|
||||||
if (!is_null($player->getTiebreaks()[$tbkey])) {
|
if (!is_null($player->getTiebreaks()[$tbkey])) {
|
||||||
if ($playerkey != 0) {
|
if ($playerkey != 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user