mirror of
https://github.com/furyfire/trueskill.git
synced 2025-05-08 04:38:08 +00:00
PHPMD reintroduced.
This commit is contained in:
@ -34,12 +34,12 @@ class PlayerPriorValuesToSkillsLayer extends TrueSkillFactorGraphLayer
|
||||
$localCurrentTeam = $currentTeam;
|
||||
$currentTeamSkills = [];
|
||||
|
||||
$currentTeamAllPlayers = $localCurrentTeam->getAllPlayers();
|
||||
foreach ($currentTeamAllPlayers as $currentTeamPlayer) {
|
||||
$localCurrentTeamPlayer = $currentTeamPlayer;
|
||||
$currentTeamPlayerRating = $currentTeam->getRating($localCurrentTeamPlayer);
|
||||
$playerSkill = $this->createSkillOutputVariable($localCurrentTeamPlayer);
|
||||
$priorFactor = $this->createPriorFactor($currentTeamPlayerRating, $playerSkill);
|
||||
$curTeamAllPlayers = $localCurrentTeam->getAllPlayers();
|
||||
foreach ($curTeamAllPlayers as $curTeamPlayer) {
|
||||
$localCurTeamPlayer = $curTeamPlayer;
|
||||
$curTeamPlayerRating = $currentTeam->getRating($localCurTeamPlayer);
|
||||
$playerSkill = $this->createSkillOutputVariable($localCurTeamPlayer);
|
||||
$priorFactor = $this->createPriorFactor($curTeamPlayerRating, $playerSkill);
|
||||
$this->addLayerFactor($priorFactor);
|
||||
$currentTeamSkills[] = $playerSkill;
|
||||
}
|
||||
|
Reference in New Issue
Block a user