@@ -196,7 +196,7 @@ |
||
| 196 | 196 | private function getTreeSize($fighterCount, $groupSize) |
| 197 | 197 | { |
| 198 | 198 | $square = collect([1, 2, 4, 8, 16, 32, 64]); |
| 199 | - $squareMultiplied = $square->map(function ($item, $key) use ($groupSize) { |
|
| 199 | + $squareMultiplied = $square->map(function($item, $key) use ($groupSize) { |
|
| 200 | 200 | return $item * $groupSize; |
| 201 | 201 | }); |
| 202 | 202 | |
@@ -252,8 +252,9 @@ discard block |
||
| 252 | 252 | } |
| 253 | 253 | |
| 254 | 254 | /** |
| 255 | - * @param $usersByArea |
|
| 256 | - * @param $area |
|
| 255 | + * @param Collection $usersByArea |
|
| 256 | + * @param integer $area |
|
| 257 | + * @param integer $round |
|
| 257 | 258 | * |
| 258 | 259 | */ |
| 259 | 260 | public function generateGroupsForRound($usersByArea, $area, $round) |
@@ -283,7 +284,7 @@ discard block |
||
| 283 | 284 | /** |
| 284 | 285 | * @param $fighters |
| 285 | 286 | * @param $area |
| 286 | - * @param $order |
|
| 287 | + * @param integer $order |
|
| 287 | 288 | * @param $round |
| 288 | 289 | * @return FightersGroup |
| 289 | 290 | */ |
@@ -351,6 +352,9 @@ discard block |
||
| 351 | 352 | : new Competitor(); |
| 352 | 353 | } |
| 353 | 354 | |
| 355 | + /** |
|
| 356 | + * @param integer $groupSize |
|
| 357 | + */ |
|
| 354 | 358 | public function createByeGroup($groupSize): Collection |
| 355 | 359 | { |
| 356 | 360 | $byeFighter = $this->createByeFighter(); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('fighters_groups', function (Blueprint $table) { |
|
| 16 | + Schema::create('fighters_groups', function(Blueprint $table) { |
|
| 17 | 17 | $table->increments('id'); |
| 18 | 18 | $table->tinyInteger('short_id'); |
| 19 | 19 | $table->integer('championship_id')->unsigned()->index(); |