diff --git a/.phpcs.xml b/.phpcs.xml
index bf7a001..103964b 100644
--- a/.phpcs.xml
+++ b/.phpcs.xml
@@ -13,6 +13,31 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/FactorGraphs/FactorGraph.php b/src/FactorGraphs/FactorGraph.php
index 352ce8e..9a68f59 100644
--- a/src/FactorGraphs/FactorGraph.php
+++ b/src/FactorGraphs/FactorGraph.php
@@ -1,5 +1,7 @@
Id;
+ return (string)$this->Id;
}
}
diff --git a/src/PlayersRange.php b/src/PlayersRange.php
index 3ceb1ee..81eb919 100644
--- a/src/PlayersRange.php
+++ b/src/PlayersRange.php
@@ -1,5 +1,7 @@
validateTeamCountAndPlayersCountPerTeam($teams);
@@ -124,7 +127,9 @@ class FactorGraphTrueSkillCalculator extends SkillCalculator
/**
* Helper function that gets a list of values for all player ratings
+ *
* @param Team[] $teamAssignmentsList
+ *
* @return int[]
*/
private static function getPlayerRatingValues(array $teamAssignmentsList, \Closure $playerRatingFunction): array
diff --git a/src/TrueSkill/Factors/GaussianFactor.php b/src/TrueSkill/Factors/GaussianFactor.php
index ed5d7cb..c45b44f 100644
--- a/src/TrueSkill/Factors/GaussianFactor.php
+++ b/src/TrueSkill/Factors/GaussianFactor.php
@@ -1,5 +1,7 @@
$weights
*/
private array $weights = [];
@@ -249,7 +250,7 @@ class GaussianWeightedSumFactor extends GaussianFactor
$absValue = sprintf('%.2f', \abs($weights[$i])); // 0.00?
$result .= $absValue;
$result .= '*[';
- $result .= (string) $variablesToSum[$i];
+ $result .= (string)$variablesToSum[$i];
$result .= ']';
$isLast = ($i === $totalVars - 1);
diff --git a/src/TrueSkill/Factors/GaussianWithinFactor.php b/src/TrueSkill/Factors/GaussianWithinFactor.php
index 7b5d56b..73b927c 100644
--- a/src/TrueSkill/Factors/GaussianWithinFactor.php
+++ b/src/TrueSkill/Factors/GaussianWithinFactor.php
@@ -1,5 +1,7 @@
validateTeamCountAndPlayersCountPerTeam($teams);
diff --git a/src/TrueSkill/TwoTeamTrueSkillCalculator.php b/src/TrueSkill/TwoTeamTrueSkillCalculator.php
index 7661627..5b611fe 100644
--- a/src/TrueSkill/TwoTeamTrueSkillCalculator.php
+++ b/src/TrueSkill/TwoTeamTrueSkillCalculator.php
@@ -70,7 +70,8 @@ class TwoTeamTrueSkillCalculator extends SkillCalculator
Team $selfTeam,
Team $otherTeam,
PairwiseComparison $selfToOtherTeamComparison
- ): void {
+ ): void
+ {
$drawMargin = DrawMargin::getDrawMarginFromDrawProbability(
$gameInfo->getDrawProbability(),
$gameInfo->getBeta()