@@ -3,8 +3,6 @@ |
||
3 | 3 | namespace Xoco70\LaravelTournaments\TreeGen; |
4 | 4 | |
5 | 5 | use Illuminate\Support\Collection; |
6 | -use Xoco70\LaravelTournaments\Exceptions\DuplicatedException; |
|
7 | -use Xoco70\LaravelTournaments\Exceptions\DuplicatedFighterException; |
|
8 | 6 | use Xoco70\LaravelTournaments\Models\Competitor; |
9 | 7 | use Xoco70\LaravelTournaments\Models\Fight; |
10 | 8 | use Xoco70\LaravelTournaments\Models\FighterGroupCompetitor; |
@@ -83,8 +83,8 @@ |
||
83 | 83 | protected function updateGroupFighters(FightersGroup $group, Fight $fight, $oldCompetitors) |
84 | 84 | { |
85 | 85 | |
86 | - for ($num = 0; $num <=1;$num++){ |
|
87 | - $c1or2 = "c".($num+1); |
|
86 | + for ($num = 0; $num <= 1; $num++) { |
|
87 | + $c1or2 = "c" . ($num + 1); |
|
88 | 88 | $fgc = FighterGroupCompetitor::where('fighters_group_id', $group->id) |
89 | 89 | ->where('competitor_id', $oldCompetitors[$num]) |
90 | 90 | ->first(); |
@@ -7,7 +7,6 @@ |
||
7 | 7 | use Illuminate\Http\Request; |
8 | 8 | use Illuminate\Support\Facades\DB; |
9 | 9 | use Xoco70\LaravelTournaments\Contracts\TreeGenerable; |
10 | -use Xoco70\LaravelTournaments\Exceptions\DuplicatedException; |
|
11 | 10 | use Xoco70\LaravelTournaments\Exceptions\DuplicatedFighterException; |
12 | 11 | use Xoco70\LaravelTournaments\Exceptions\TreeGenerationException; |
13 | 12 | use Xoco70\LaravelTournaments\Models\Championship; |
@@ -82,8 +82,8 @@ |
||
82 | 82 | protected function updateGroupFighters(FightersGroup $group, Fight $fight, $oldTeams) |
83 | 83 | { |
84 | 84 | |
85 | - for ($num = 0; $num <=1;$num++){ |
|
86 | - $c1or2 = "c".($num+1); |
|
85 | + for ($num = 0; $num <= 1; $num++) { |
|
86 | + $c1or2 = "c" . ($num + 1); |
|
87 | 87 | $fgc = FighterGroupTeam::where('fighters_group_id', $group->id) |
88 | 88 | ->where('team_id', $oldTeams[$num]) |
89 | 89 | ->first(); |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | $prefix = "singleElimination"; |
3 | -if ($championship->hasPreliminary() && $roundNumber ==1){ |
|
3 | +if ($championship->hasPreliminary() && $roundNumber == 1) { |
|
4 | 4 | $prefix = "preliminary"; |
5 | 5 | } |
6 | -$className = $prefix."_select"; |
|
6 | +$className = $prefix . "_select"; |
|
7 | 7 | |
8 | 8 | ?> |
9 | 9 | <!-- r = round, m = match, f = fighter --> |