@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | throw new PlayersCollectionException('The couple can not be the same player'); |
38 | 38 | } |
39 | 39 | |
40 | - if (!$this->isDuplicatePlayer($player) && !$this->isDuplicatePlayer($couple) ) { |
|
40 | + if (!$this->isDuplicatePlayer($player) && !$this->isDuplicatePlayer($couple)) { |
|
41 | 41 | $this->players[$player->id()] = $player; |
42 | 42 | $this->players[$couple->id()] = $couple; |
43 | 43 | |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | { |
84 | 84 | foreach ($players as $mainPlayer) { |
85 | 85 | foreach ($players as $player) { |
86 | - if ($mainPlayer->id() == $player->id()){ |
|
86 | + if ($mainPlayer->id() == $player->id()) { |
|
87 | 87 | continue; |
88 | 88 | } |
89 | 89 | $this->excludePlayers[$mainPlayer->id()][] = $player->id(); |
@@ -80,7 +80,7 @@ |
||
80 | 80 | |
81 | 81 | $retry = count($this->players) + $this->players->countExcludePlayers(); |
82 | 82 | |
83 | - while (!$this->tryMatchSecretSantaPlayers() && $retry > 0 ) { |
|
83 | + while (!$this->tryMatchSecretSantaPlayers() && $retry > 0) { |
|
84 | 84 | $retry--; |
85 | 85 | } |
86 | 86 |