Passed
Push — master ( 24a4a4...d8896b )
by Julien
06:15
created
src/TreeGen/SingleEliminationTreeGen.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -301,7 +301,7 @@
 block discarded – undo
301 301
     function getMaxFightersByEntity($userGroups): int
302 302
     {
303 303
         return $userGroups
304
-            ->sortByDesc(function ($group) {
304
+            ->sortByDesc(function($group) {
305 305
                 return $group->count();
306 306
             })
307 307
             ->first()
Please login to merge, or discard this patch.
src/TreeGen/TreeGen.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
     protected function getTreeSize($fighterCount, $groupSize)
92 92
     {
93 93
         $squareMultiplied = collect([1, 2, 4, 8, 16, 32, 64])
94
-            ->map(function ($item) use ($groupSize) {
94
+            ->map(function($item) use ($groupSize) {
95 95
                 return $item * $groupSize;
96 96
             }); // [4, 8, 16, 32, 64,...]
97 97
 
@@ -197,10 +197,10 @@  discard block
 block discarded – undo
197 197
     protected function getFightersByArea()
198 198
     {
199 199
         $areas = $this->settings->fightingAreas;
200
-        $fighters = $this->getFighters();   // Get Competitor or Team Objects
201
-        $fighterByEntity = $this->getFightersByEntity($fighters);   // Chunk it by entities (Fede, Assoc, Club,...)
202
-        $fightersWithBye = $this->adjustFightersGroupWithByes($fighters, $fighterByEntity);     // Fill with Byes
203
-        return $fightersWithBye->chunk(count($fightersWithBye) / $areas);   // Chunk user by areas
200
+        $fighters = $this->getFighters(); // Get Competitor or Team Objects
201
+        $fighterByEntity = $this->getFightersByEntity($fighters); // Chunk it by entities (Fede, Assoc, Club,...)
202
+        $fightersWithBye = $this->adjustFightersGroupWithByes($fighters, $fighterByEntity); // Fill with Byes
203
+        return $fightersWithBye->chunk(count($fightersWithBye) / $areas); // Chunk user by areas
204 204
     }
205 205
 
206 206
     /**
Please login to merge, or discard this patch.