@@ -192,7 +192,7 @@ discard block |
||
| 192 | 192 | } |
| 193 | 193 | |
| 194 | 194 | /** |
| 195 | - * @param $numRound |
|
| 195 | + * @param integer $numRound |
|
| 196 | 196 | */ |
| 197 | 197 | private function assignFightersToBracket($numRound, $hasPreliminary) |
| 198 | 198 | { |
@@ -218,7 +218,7 @@ discard block |
||
| 218 | 218 | /** |
| 219 | 219 | * @param $selected |
| 220 | 220 | * @param $fighter |
| 221 | - * @param $html |
|
| 221 | + * @param string $html |
|
| 222 | 222 | * @return string |
| 223 | 223 | */ |
| 224 | 224 | private function addOptionToSelect($selected, $fighter, $html): string |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | $this->groupsByRound = $groupsByRound; |
| 27 | 27 | $this->hasPreliminary = $hasPreliminary; |
| 28 | 28 | |
| 29 | - $this->firstRoundName = $groupsByRound->first()->map(function ($item) use ($championship) { |
|
| 29 | + $this->firstRoundName = $groupsByRound->first()->map(function($item) use ($championship) { |
|
| 30 | 30 | $fighters = $item->getFightersWithBye(); |
| 31 | 31 | $fighter1 = $fighters->get(0); |
| 32 | 32 | $fighter2 = $fighters->get(1); |
@@ -5,7 +5,7 @@ |
||
| 5 | 5 | foreach ($championship->fightersGroups as $group) { |
| 6 | 6 | $group->fixTree(); |
| 7 | 7 | } |
| 8 | -$directEliminationTree = $championship->fightersGroups->where('round', '>=', $hasPreliminary +1 )->groupBy('round'); |
|
| 8 | +$directEliminationTree = $championship->fightersGroups->where('round', '>=', $hasPreliminary + 1)->groupBy('round'); |
|
| 9 | 9 | |
| 10 | 10 | $treeGen = new CreateDirectEliminationTree($directEliminationTree, $championship, $hasPreliminary); |
| 11 | 11 | $treeGen->build(); |