Test Setup Failed
Pull Request — master (#48)
by Julien
12:17 queued 08:48
created
database/factories/ChampionshipSettingsFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
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];
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
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.