CodeBeautifier.

This commit is contained in:
Jens True 2023-08-03 14:10:17 +00:00
parent eada4f87b3
commit 3d26c639ae
4 changed files with 7 additions and 6 deletions

@ -1,6 +1,7 @@
<?php
namespace DNW\Skills\FactorGraphs;
use DNW\Skills\FactorGraphs\ScheduleSequence;
use DNW\Skills\TrueSkill\TrueSkillFactorGraph;
@ -12,11 +13,11 @@ abstract class FactorGraphLayer
private array $localFactors = [];
/**
* @var array<int,array<int,object>>
* @var array<int,array<int,object>>
*/
private array $outputVariablesGroups = [];
/**
* @var array<int,array<int,object>>
* @var array<int,array<int,object>>
*/
private $inputVariablesGroups = [];

@ -120,7 +120,7 @@ class FactorGraphTrueSkillCalculator extends SkillCalculator
);
}
/**
* Helper function that gets a list of values for all player ratings
* @param Team[] $teamAssignmentsList

@ -8,8 +8,8 @@ use DNW\Skills\PartialPlay;
use DNW\Skills\Player;
use DNW\Skills\Team;
use DNW\Skills\TrueSkill\Factors\GaussianWeightedSumFactor;
use DNW\Skills\FactorGraphs\Variable;
use DNW\Skills\FactorGraphs\KeyedVariable;
use DNW\Skills\FactorGraphs\Variable;
use DNW\Skills\FactorGraphs\KeyedVariable;
class PlayerPerformancesToTeamPerformancesLayer extends TrueSkillFactorGraphLayer
{

@ -69,7 +69,7 @@ class PlayerPriorValuesToSkillsLayer extends TrueSkillFactorGraphLayer
);
}
private function createSkillOutputVariable(mixed $key) : KeyedVariable
private function createSkillOutputVariable(mixed $key): KeyedVariable
{
$parentFactorGraph = $this->getParentFactorGraph();
$variableFactory = $parentFactorGraph->getVariableFactory();