@@ -3,7 +3,7 @@ |
||
3 | 3 | use Xoco70\LaravelTournaments\Models\Championship; |
4 | 4 | use Xoco70\LaravelTournaments\Models\ChampionshipSettings; |
5 | 5 | |
6 | -$factory->define(ChampionshipSettings::class, function (Faker\Generator $faker) { |
|
6 | +$factory->define(ChampionshipSettings::class, function(Faker\Generator $faker) { |
|
7 | 7 | $tcs = Championship::all()->pluck('id')->toArray(); |
8 | 8 | |
9 | 9 | $fightingAreas = [1, 2, 4, 8]; |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | protected function getTreeSize($fighterCount, $groupSize) |
90 | 90 | { |
91 | 91 | $squareMultiplied = collect([1, 2, 4, 8, 16, 32, 64]) |
92 | - ->map(function ($item) use ($groupSize) { |
|
92 | + ->map(function($item) use ($groupSize) { |
|
93 | 93 | return $item * $groupSize; |
94 | 94 | }); // [4, 8, 16, 32, 64,...] |
95 | 95 | |
@@ -191,11 +191,11 @@ discard block |
||
191 | 191 | protected function getFightersByArea() |
192 | 192 | { |
193 | 193 | $areas = $this->settings->fightingAreas; |
194 | - $fighters = $this->getFighters(); // Get Competitor or Team Objects |
|
195 | - $fighterByEntity = $this->getFightersByEntity($fighters); // Chunk it by entities (Fede, Assoc, Club,...) |
|
196 | - $fightersWithBye = $this->adjustFightersGroupWithByes($fighters, $fighterByEntity); // Fill with Byes |
|
194 | + $fighters = $this->getFighters(); // Get Competitor or Team Objects |
|
195 | + $fighterByEntity = $this->getFightersByEntity($fighters); // Chunk it by entities (Fede, Assoc, Club,...) |
|
196 | + $fightersWithBye = $this->adjustFightersGroupWithByes($fighters, $fighterByEntity); // Fill with Byes |
|
197 | 197 | |
198 | - return $fightersWithBye->chunk(count($fightersWithBye) / $areas); // Chunk user by areas |
|
198 | + return $fightersWithBye->chunk(count($fightersWithBye) / $areas); // Chunk user by areas |
|
199 | 199 | } |
200 | 200 | |
201 | 201 | /** |