mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-11-22 06:26:57 +01:00
Simplified calculating final result
This commit is contained in:
parent
44e64cbb3c
commit
799c9a831e
@ -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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user