mirror of
https://github.com/furyfire/trueskill.git
synced 2025-07-15 07:50:58 +02:00
PHPMD reintroduced.
This commit is contained in:
@@ -8,14 +8,14 @@ class PartialPlay
|
||||
{
|
||||
public static function getPartialPlayPercentage(Player $player): float
|
||||
{
|
||||
$partialPlayPercentage = $player->getPartialPlayPercentage();
|
||||
$partialPlayPct = $player->getPartialPlayPercentage();
|
||||
|
||||
// HACK to get around bug near 0
|
||||
$smallestPercentage = 0.0001;
|
||||
if ($partialPlayPercentage < $smallestPercentage) {
|
||||
return $smallestPercentage;
|
||||
$smallestPct = 0.0001;
|
||||
if ($partialPlayPct < $smallestPct) {
|
||||
return $smallestPct;
|
||||
}
|
||||
|
||||
return $partialPlayPercentage;
|
||||
return $partialPlayPct;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user