Simplified calculating final result

This commit is contained in:
Jeroen De Meerleer 2019-09-27 17:03:58 +02:00
parent 44e64cbb3c
commit 799c9a831e
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6

View File

@ -742,10 +742,7 @@ class Tournament
$intpairings = array_slice($intpairings, $cutlowest); $intpairings = array_slice($intpairings, $cutlowest);
$intpairings = array_slice($intpairings, 0 - $cuthighest); $intpairings = array_slice($intpairings, 0 - $cuthighest);
foreach ($intpairings as $intkey => $intpairing) { return array_sum($intpairings);
$tiebreak += $intpairing;
}
return $tiebreak;
} }