Updated a.3 Showing the pairings of a specific player (markdown)

Jeroen De Meerleer 2019-06-14 08:45:47 +02:00
parent 370088d9b3
commit 1cd31377f1

@ -22,7 +22,7 @@ foreach ($magnus->getPairings() as $pairing) {
$opponent = $pairing->getOpponent()->getName();
$color = $pairing->getColor()->getKey();
echo $player . ' ' . $pairing->getResult()->getKey() . ' against ' . $opponent . ' using ' . $color . PHP_EOL;
} elseif ($pairing->getResult() == Result::bye) {
} elseif ($pairing->getResult() == Result::wonbye) {
echo $player . ' is bye' . PHP_EOL;
} elseif ($pairing->getResult() == Result::absent) {
echo $player . ' is absent' . PHP_EOL;