@@ -41,7 +41,7 @@ |
||
| 41 | 41 | * |
| 42 | 42 | * @param Request $request |
| 43 | 43 | * |
| 44 | - * @return \Illuminate\Http\Response|string |
|
| 44 | + * @return \Illuminate\Http\RedirectResponse |
|
| 45 | 45 | */ |
| 46 | 46 | public function store(Request $request, $championshipId) |
| 47 | 47 | { |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | * |
| 31 | 31 | * @param $fightersByEntity |
| 32 | 32 | * |
| 33 | - * @return mixed |
|
| 33 | + * @return Collection |
|
| 34 | 34 | */ |
| 35 | 35 | protected function chunkAndShuffle(Collection $fightersByEntity) |
| 36 | 36 | { |
@@ -97,6 +97,9 @@ discard block |
||
| 97 | 97 | } |
| 98 | 98 | } |
| 99 | 99 | |
| 100 | + /** |
|
| 101 | + * @param integer $round |
|
| 102 | + */ |
|
| 100 | 103 | protected function generateGroupsForRound(Collection $fightersByArea, $round) |
| 101 | 104 | { |
| 102 | 105 | $fightersId = $fightersByArea->pluck('id'); |
@@ -34,8 +34,14 @@ discard block |
||
| 34 | 34 | |
| 35 | 35 | abstract protected function generateGroupsForRound(Collection $fightersByArea, $round); |
| 36 | 36 | |
| 37 | + /** |
|
| 38 | + * @return Collection |
|
| 39 | + */ |
|
| 37 | 40 | abstract protected function getByeGroup($fighters); |
| 38 | 41 | |
| 42 | + /** |
|
| 43 | + * @param integer $fighterId |
|
| 44 | + */ |
|
| 39 | 45 | abstract protected function getFighter($fighterId); |
| 40 | 46 | |
| 41 | 47 | abstract protected function getFighters(); |
@@ -114,7 +120,7 @@ discard block |
||
| 114 | 120 | /** |
| 115 | 121 | * Get the biggest entity group. |
| 116 | 122 | * |
| 117 | - * @param $userGroups |
|
| 123 | + * @param Collection $userGroups |
|
| 118 | 124 | * |
| 119 | 125 | * @return int |
| 120 | 126 | */ |
@@ -182,7 +188,7 @@ discard block |
||
| 182 | 188 | /** |
| 183 | 189 | * Repart BYE in the tree,. |
| 184 | 190 | * |
| 185 | - * @param $fighterGroups |
|
| 191 | + * @param Collection $fighterGroups |
|
| 186 | 192 | * @param int $max |
| 187 | 193 | * |
| 188 | 194 | * @return Collection |
@@ -342,7 +348,7 @@ discard block |
||
| 342 | 348 | /** |
| 343 | 349 | * Attach a parent to every child for nestedSet Navigation. |
| 344 | 350 | * |
| 345 | - * @param $numFightersElim |
|
| 351 | + * @param integer $numFightersElim |
|
| 346 | 352 | */ |
| 347 | 353 | protected function addParentToChildren($numFightersElim) |
| 348 | 354 | { |
@@ -366,8 +372,8 @@ discard block |
||
| 366 | 372 | |
| 367 | 373 | /** |
| 368 | 374 | * @param Collection $fighters |
| 369 | - * @param $frequency |
|
| 370 | - * @param $sizeGroupBy |
|
| 375 | + * @param integer $frequency |
|
| 376 | + * @param integer $sizeGroupBy |
|
| 371 | 377 | * @param $bye |
| 372 | 378 | * |
| 373 | 379 | * @return Collection |
@@ -392,8 +398,8 @@ discard block |
||
| 392 | 398 | /** |
| 393 | 399 | * @param $frequency |
| 394 | 400 | * @param $sizeGroupBy |
| 395 | - * @param $count |
|
| 396 | - * @param $byeCount |
|
| 401 | + * @param integer $count |
|
| 402 | + * @param integer $byeCount |
|
| 397 | 403 | * |
| 398 | 404 | * @return bool |
| 399 | 405 | */ |
@@ -511,7 +517,7 @@ discard block |
||
| 511 | 517 | |
| 512 | 518 | /** |
| 513 | 519 | * @param $fighters |
| 514 | - * @param $numFighter |
|
| 520 | + * @param integer $numFighter |
|
| 515 | 521 | * @param $fight |
| 516 | 522 | * @param $winners |
| 517 | 523 | * @return int |