@@ -1,6 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -use Faker\Factory as Faker; |
|
| 4 | 3 | use Illuminate\Database\Seeder; |
| 5 | 4 | use Illuminate\Foundation\Auth\User; |
| 6 | 5 | use Xoco70\KendoTournaments\Models\Championship; |
@@ -6,7 +6,6 @@ |
||
| 6 | 6 | use Illuminate\Support\Facades\App; |
| 7 | 7 | use Xoco70\KendoTournaments\Models\Championship; |
| 8 | 8 | use Xoco70\KendoTournaments\Models\DirectEliminationFight; |
| 9 | -use Xoco70\KendoTournaments\Models\Fight; |
|
| 10 | 9 | |
| 11 | 10 | class DirectEliminationTreeGen extends TreeGen |
| 12 | 11 | { |
@@ -10,8 +10,6 @@ |
||
| 10 | 10 | use Xoco70\KendoTournaments\Models\Championship; |
| 11 | 11 | use Xoco70\KendoTournaments\Models\ChampionshipSettings; |
| 12 | 12 | use Xoco70\KendoTournaments\Models\Competitor; |
| 13 | -use Xoco70\KendoTournaments\Models\Fight; |
|
| 14 | -use Xoco70\KendoTournaments\Models\FightersGroup; |
|
| 15 | 13 | use Xoco70\KendoTournaments\Models\Team; |
| 16 | 14 | use Xoco70\KendoTournaments\Models\Tournament; |
| 17 | 15 | |
@@ -233,7 +233,7 @@ discard block |
||
| 233 | 233 | } |
| 234 | 234 | |
| 235 | 235 | /** |
| 236 | - * @param $roundNumber |
|
| 236 | + * @param integer $roundNumber |
|
| 237 | 237 | */ |
| 238 | 238 | private function assignFightersToBracket($roundNumber) |
| 239 | 239 | { |
@@ -258,7 +258,7 @@ discard block |
||
| 258 | 258 | /** |
| 259 | 259 | * @param $selected |
| 260 | 260 | * @param $fighter |
| 261 | - * @param $html |
|
| 261 | + * @param string $html |
|
| 262 | 262 | * @return string |
| 263 | 263 | */ |
| 264 | 264 | private function addOptionToSelect($selected, $fighter, $html): string |
@@ -14,7 +14,6 @@ |
||
| 14 | 14 | |
| 15 | 15 | /** |
| 16 | 16 | * Calculate the Byes need to fill the Championship Tree. |
| 17 | - * @param Championship $championship |
|
| 18 | 17 | * @param $fighters |
| 19 | 18 | * @return Collection |
| 20 | 19 | */ |
@@ -6,7 +6,6 @@ |
||
| 6 | 6 | use Illuminate\Support\Facades\App; |
| 7 | 7 | use Xoco70\KendoTournaments\Models\Championship; |
| 8 | 8 | use Xoco70\KendoTournaments\Models\DirectEliminationFight; |
| 9 | -use Xoco70\KendoTournaments\Models\Fight; |
|
| 10 | 9 | use Xoco70\KendoTournaments\Models\PreliminaryFight; |
| 11 | 10 | |
| 12 | 11 | class PlayOffTreeGen extends TreeGen |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | |
| 53 | 53 | /** |
| 54 | 54 | * Get the biggest entity group |
| 55 | - * @param $userGroups |
|
| 55 | + * @param Collection $userGroups |
|
| 56 | 56 | * |
| 57 | 57 | * @return int |
| 58 | 58 | */ |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | |
| 112 | 112 | /** |
| 113 | 113 | * Repart BYE in the tree, |
| 114 | - * @param $fighterGroups |
|
| 114 | + * @param Collection $fighterGroups |
|
| 115 | 115 | * @param int $max |
| 116 | 116 | * |
| 117 | 117 | * @return Collection |
@@ -179,9 +179,9 @@ discard block |
||
| 179 | 179 | } |
| 180 | 180 | |
| 181 | 181 | /** |
| 182 | - * @param $area |
|
| 183 | - * @param $order |
|
| 184 | - * @param $round |
|
| 182 | + * @param integer $area |
|
| 183 | + * @param integer $order |
|
| 184 | + * @param integer $round |
|
| 185 | 185 | * @param $parent |
| 186 | 186 | * @return FightersGroup |
| 187 | 187 | */ |
@@ -326,8 +326,8 @@ discard block |
||
| 326 | 326 | |
| 327 | 327 | /** |
| 328 | 328 | * @param Collection $fighters |
| 329 | - * @param $frequency |
|
| 330 | - * @param $sizeGroupBy |
|
| 329 | + * @param integer $frequency |
|
| 330 | + * @param integer $sizeGroupBy |
|
| 331 | 331 | * @param $bye |
| 332 | 332 | * @return Collection |
| 333 | 333 | */ |
@@ -350,8 +350,8 @@ discard block |
||
| 350 | 350 | /** |
| 351 | 351 | * @param $frequency |
| 352 | 352 | * @param $sizeGroupBy |
| 353 | - * @param $count |
|
| 354 | - * @param $byeCount |
|
| 353 | + * @param integer $count |
|
| 354 | + * @param integer $byeCount |
|
| 355 | 355 | * @return bool |
| 356 | 356 | */ |
| 357 | 357 | private function shouldInsertBye($frequency, $sizeGroupBy, $count, $byeCount): bool |
@@ -361,7 +361,6 @@ discard block |
||
| 361 | 361 | |
| 362 | 362 | |
| 363 | 363 | /** |
| 364 | - * @param Championship $championship |
|
| 365 | 364 | */ |
| 366 | 365 | protected function destroyPreviousFights() |
| 367 | 366 | { |
@@ -8,10 +8,8 @@ |
||
| 8 | 8 | use Xoco70\KendoTournaments\Exceptions\TreeGenerationException; |
| 9 | 9 | use Xoco70\KendoTournaments\Models\Championship; |
| 10 | 10 | use Xoco70\KendoTournaments\Models\ChampionshipSettings; |
| 11 | -use Xoco70\KendoTournaments\Models\DirectEliminationFight; |
|
| 12 | 11 | use Xoco70\KendoTournaments\Models\Fight; |
| 13 | 12 | use Xoco70\KendoTournaments\Models\FightersGroup; |
| 14 | -use Xoco70\KendoTournaments\Models\PreliminaryFight; |
|
| 15 | 13 | |
| 16 | 14 | class TreeGen implements TreeGenerable |
| 17 | 15 | { |
@@ -2,9 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Xoco70\KendoTournaments\Models; |
| 4 | 4 | |
| 5 | -use Illuminate\Database\Eloquent\Model; |
|
| 6 | -use Illuminate\Support\Collection; |
|
| 7 | - |
|
| 8 | 5 | class DirectEliminationFight extends Fight |
| 9 | 6 | { |
| 10 | 7 | public function __construct(Fight $fight = null) |