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