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

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

@ -8,8 +8,8 @@ use DNW\Skills\PartialPlay;
use DNW\Skills\Player; use DNW\Skills\Player;
use DNW\Skills\Team; use DNW\Skills\Team;
use DNW\Skills\TrueSkill\Factors\GaussianWeightedSumFactor; use DNW\Skills\TrueSkill\Factors\GaussianWeightedSumFactor;
use DNW\Skills\FactorGraphs\Variable; use DNW\Skills\FactorGraphs\Variable;
use DNW\Skills\FactorGraphs\KeyedVariable; use DNW\Skills\FactorGraphs\KeyedVariable;
class PlayerPerformancesToTeamPerformancesLayer extends TrueSkillFactorGraphLayer 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(); $parentFactorGraph = $this->getParentFactorGraph();
$variableFactory = $parentFactorGraph->getVariableFactory(); $variableFactory = $parentFactorGraph->getVariableFactory();