Code style fixes

This commit is contained in:
Jeroen De Meerleer 2019-12-26 20:33:53 +01:00
parent e388427054
commit b369b72237
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6
2 changed files with 4 additions and 3 deletions

View File

@ -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)) {

View File

@ -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;
} }