Code style fixes

This commit is contained in:
Jeroen De Meerleer 2019-09-25 16:39:46 +02:00
parent 0df01eebd5
commit 8b471c4ffe
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6
3 changed files with 2 additions and 3 deletions

View File

@ -14,7 +14,6 @@ namespace JeroenED\Libpairtwo\Enums;
use MyCLabs\Enum\Enum; use MyCLabs\Enum\Enum;
/** /**
* Enum Gender * Enum Gender
* *

View File

@ -372,7 +372,7 @@ class Swar4 implements ReaderInterface
$pairing->setPlayer($this->getTournament()->getPlayerById($this->getTournament()->getBinaryData('Pairing_' . $ptn . '_player'))); $pairing->setPlayer($this->getTournament()->getPlayerById($this->getTournament()->getBinaryData('Pairing_' . $ptn . '_player')));
$pairing->setRound($this->getTournament()->getBinaryData('Pairing_' . $ptn . '_round')); $pairing->setRound($this->getTournament()->getBinaryData('Pairing_' . $ptn . '_round'));
if($this->getTournament()->getBinaryData('Pairing_' . $ptn . '_opponent') != 4294967294) { if ($this->getTournament()->getBinaryData('Pairing_' . $ptn . '_opponent') != 4294967294) {
$pairing->setOpponent($this->getTournament()->getPlayerById($this->getTournament()->getBinaryData('Pairing_' . $ptn . '_opponent'))); $pairing->setOpponent($this->getTournament()->getPlayerById($this->getTournament()->getBinaryData('Pairing_' . $ptn . '_opponent')));
} }
//echo $ptn . ' ' . $this->getTournament()->getBinaryData('Pairing_' . $ptn . '_round') . ' ' . $pairing->getPlayer()->getName() . ' - ' . $opponent . ' ' . $this->getTournament()->getBinaryData('Pairing_' . $ptn . '_result') . PHP_EOL; //echo $ptn . ' ' . $this->getTournament()->getBinaryData('Pairing_' . $ptn . '_round') . ' ' . $pairing->getPlayer()->getName() . ' - ' . $opponent . ' ' . $this->getTournament()->getBinaryData('Pairing_' . $ptn . '_result') . PHP_EOL;

View File

@ -428,7 +428,7 @@ class Tournament
return $this->calculateKashdan($player, ["Won" => 4, "Draw" => 2, "Lost" => 1, "NotPlayed" => 0]); return $this->calculateKashdan($player, ["Won" => 4, "Draw" => 2, "Lost" => 1, "NotPlayed" => 0]);
break; break;
case Tiebreak::SoccerKashdan: case Tiebreak::SoccerKashdan:
return $this->calculateKashdan($player, ["Won" => 3, "Draw" => 1, "Lost" => 0, "NotPlayed" => -1]); return $this->calculateKashdan($player, ["Won" => 3, "Draw" => 1, "Lost" => 0, "NotPlayed" => -1]);
break; break;
case Tiebreak::Cumulative: case Tiebreak::Cumulative:
return $this->calculateCumulative($player); return $this->calculateCumulative($player);