From 3d26c639ae0c9fec4881d88b715985f7f4fdbc82 Mon Sep 17 00:00:00 2001 From: Jens True Date: Thu, 3 Aug 2023 14:10:17 +0000 Subject: [PATCH] CodeBeautifier. --- src/FactorGraphs/FactorGraphLayer.php | 5 +++-- src/TrueSkill/FactorGraphTrueSkillCalculator.php | 2 +- .../Layers/PlayerPerformancesToTeamPerformancesLayer.php | 4 ++-- src/TrueSkill/Layers/PlayerPriorValuesToSkillsLayer.php | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/FactorGraphs/FactorGraphLayer.php b/src/FactorGraphs/FactorGraphLayer.php index 52639a5..ca2cb8c 100644 --- a/src/FactorGraphs/FactorGraphLayer.php +++ b/src/FactorGraphs/FactorGraphLayer.php @@ -1,6 +1,7 @@ > + * @var array> */ private array $outputVariablesGroups = []; /** - * @var array> + * @var array> */ private $inputVariablesGroups = []; diff --git a/src/TrueSkill/FactorGraphTrueSkillCalculator.php b/src/TrueSkill/FactorGraphTrueSkillCalculator.php index fc9acfe..a89f334 100644 --- a/src/TrueSkill/FactorGraphTrueSkillCalculator.php +++ b/src/TrueSkill/FactorGraphTrueSkillCalculator.php @@ -120,7 +120,7 @@ class FactorGraphTrueSkillCalculator extends SkillCalculator ); } - + /** * Helper function that gets a list of values for all player ratings * @param Team[] $teamAssignmentsList diff --git a/src/TrueSkill/Layers/PlayerPerformancesToTeamPerformancesLayer.php b/src/TrueSkill/Layers/PlayerPerformancesToTeamPerformancesLayer.php index 47ba4d4..490b47a 100644 --- a/src/TrueSkill/Layers/PlayerPerformancesToTeamPerformancesLayer.php +++ b/src/TrueSkill/Layers/PlayerPerformancesToTeamPerformancesLayer.php @@ -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 { diff --git a/src/TrueSkill/Layers/PlayerPriorValuesToSkillsLayer.php b/src/TrueSkill/Layers/PlayerPriorValuesToSkillsLayer.php index 55fa357..d25c6a5 100644 --- a/src/TrueSkill/Layers/PlayerPriorValuesToSkillsLayer.php +++ b/src/TrueSkill/Layers/PlayerPriorValuesToSkillsLayer.php @@ -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();