@@ -301,7 +301,7 @@ |
||
| 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() |
@@ -91,7 +91,7 @@ discard block |
||
| 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 |
||
| 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 | /** |