Completed
Push — master ( 676495...4dafdb )
by Guillermo
9s
created
src/PlayersCollection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/SecretSanta.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.