@@ -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 $area |
| 285 | 286 | * @param $fighters |
| 286 | - * @param $order |
|
| 287 | + * @param integer $order |
|
| 287 | 288 | * @param $round |
| 288 | 289 | * @return FightersGroup |
| 289 | 290 | */ |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | { |
| 35 | 35 | if ($championship->category->isTeam) { |
| 36 | 36 | $fighters = $group->teams; |
| 37 | - if (sizeof($fighters) == 0){ |
|
| 37 | + if (sizeof($fighters) == 0) { |
|
| 38 | 38 | $fighters->push(new Team()); |
| 39 | 39 | $fighters->push(new Team()); |
| 40 | 40 | } else if (count($fighters) % 2 != 0) { |
@@ -43,10 +43,10 @@ discard block |
||
| 43 | 43 | |
| 44 | 44 | } else { |
| 45 | 45 | $fighters = $group->competitors; |
| 46 | - if (sizeof($fighters) == 0){ // If |
|
| 46 | + if (sizeof($fighters) == 0) { // If |
|
| 47 | 47 | $fighters->push(new Competitor()); |
| 48 | 48 | $fighters->push(new Competitor()); |
| 49 | - }else if (count($fighters) % 2 != 0) { // If fighter is not pair, add a BYE |
|
| 49 | + } else if (count($fighters) % 2 != 0) { // If fighter is not pair, add a BYE |
|
| 50 | 50 | $fighters->push(new Competitor()); |
| 51 | 51 | } |
| 52 | 52 | |