mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-11-23 15:06:57 +01:00
Code style fixes
This commit is contained in:
parent
e388427054
commit
b369b72237
@ -348,7 +348,8 @@ class Player
|
|||||||
*
|
*
|
||||||
* @return Player[]
|
* @return Player[]
|
||||||
*/
|
*/
|
||||||
private function opponents() {
|
private function opponents()
|
||||||
|
{
|
||||||
$return = array();
|
$return = array();
|
||||||
foreach ($this->Pairings as $pairing) {
|
foreach ($this->Pairings as $pairing) {
|
||||||
if (!empty($pairing->Opponent)) {
|
if (!empty($pairing->Opponent)) {
|
||||||
|
@ -700,10 +700,10 @@ class Tournament
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if($interestingplayers) {
|
if ($interestingplayers) {
|
||||||
$allintplayers = $interestingplayers;
|
$allintplayers = $interestingplayers;
|
||||||
$allintplayers[] = $player;
|
$allintplayers[] = $player;
|
||||||
foreach($allintplayers as $player) {
|
foreach ($allintplayers as $player) {
|
||||||
if (!$player->hasPlayedAllPlayersOfArray($allintplayers)) {
|
if (!$player->hasPlayedAllPlayersOfArray($allintplayers)) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user