More standards

This commit is contained in:
2025-04-29 13:21:47 +00:00
parent 38f332b223
commit 55656b7889
8 changed files with 29 additions and 3310 deletions

View File

@ -44,7 +44,7 @@ final class IteratedTeamDifferencesInnerLayer extends TrueSkillFactorGraphLayer
}
#[\Override]
public function createPriorSchedule(): ?ScheduleSequence
public function createPriorSchedule(): ScheduleSequence
{
switch (count($this->getInputVariablesGroups())) {
case 0:

View File

@ -34,7 +34,7 @@ final class PlayerPerformancesToTeamPerformancesLayer extends TrueSkillFactorGra
}
#[\Override]
public function createPriorSchedule(): ?ScheduleSequence
public function createPriorSchedule(): ScheduleSequence
{
$localFactors = $this->getLocalFactors();
@ -69,7 +69,7 @@ final class PlayerPerformancesToTeamPerformancesLayer extends TrueSkillFactorGra
}
#[\Override]
public function createPosteriorSchedule(): ?ScheduleSequence
public function createPosteriorSchedule(): ScheduleSequence
{
$allFactors = [];
$localFactors = $this->getLocalFactors();

View File

@ -51,7 +51,7 @@ final class PlayerPriorValuesToSkillsLayer extends TrueSkillFactorGraphLayer
}
#[\Override]
public function createPriorSchedule(): ?ScheduleSequence
public function createPriorSchedule(): ScheduleSequence
{
$localFactors = $this->getLocalFactors();

View File

@ -53,7 +53,7 @@ final class PlayerSkillsToPerformancesLayer extends TrueSkillFactorGraphLayer
}
#[\Override]
public function createPriorSchedule(): ?ScheduleSequence
public function createPriorSchedule(): ScheduleSequence
{
$localFactors = $this->getLocalFactors();
@ -68,7 +68,7 @@ final class PlayerSkillsToPerformancesLayer extends TrueSkillFactorGraphLayer
}
#[\Override]
public function createPosteriorSchedule(): ?ScheduleSequence
public function createPosteriorSchedule(): ScheduleSequence
{
$localFactors = $this->getLocalFactors();

View File

@ -159,7 +159,7 @@ final class TwoTeamTrueSkillCalculator extends SkillCalculator
$team2Ratings = $teams[1]->getAllRatings();
$team2Count = count($team2Ratings);
$totalPlayers = $team1Count + $team2Count;
$totalPlayers = (float)($team1Count + $team2Count);
$betaSquared = BasicMath::square($gameInfo->getBeta());