From 8f812e9776c8740e76494de96f76f0d83be922f8 Mon Sep 17 00:00:00 2001 From: Jeroen De Meerleer Date: Sat, 1 Jun 2019 16:19:57 +0200 Subject: [PATCH] fixed kashdan --- src/Tiebreaks.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Tiebreaks.php b/src/Tiebreaks.php index 5328241..e4f8778 100644 --- a/src/Tiebreaks.php +++ b/src/Tiebreaks.php @@ -259,17 +259,17 @@ abstract class Tiebreaks extends Tournament if (array_search($pairing->getResult(), Constants::Won) !== false) { $toadd = 3; } elseif (array_search($pairing->getResult(), Constants::Draw) !== false) { - $toadd = 2; - } elseif (array_search($pairing->getResult(), Constants::Lost) !== false) { $toadd = 1; + } elseif (array_search($pairing->getResult(), Constants::Lost) !== false) { + $toadd = 0; } - if (array_search(Constants::NotPlayed, $pairing->getResult()) !== false) { - $toadd = 0; + if (array_search($pairing->getResult(), Constants::NotPlayed) !== false) { + $toadd = -1; } $tiebreak += $toadd; } - return $tiebreak; + return $tiebreak; // - $player->getNoOfWins(); } /**