|
@@ -1,12 +1,12 @@ |
|
|
block discarded – undo |
|
1
|
1
|
<?php |
|
2
|
2
|
use Xoco70\KendoTournaments\TreeGen\DirectEliminationTreeGen; |
|
3
|
3
|
|
|
4
|
|
-$directEliminationTree = $championship->fightersGroups->map(function ($item, $key) use ($championship) { |
|
5
|
|
- if ($championship->category->isTeam()){ |
|
|
4
|
+$directEliminationTree = $championship->fightersGroups->map(function($item, $key) use ($championship) { |
|
|
5
|
+ if ($championship->category->isTeam()) { |
|
6
|
6
|
|
|
7
|
7
|
$fighter1 = $item->team1 != null ? $item->team1->name : "Bye"; |
|
8
|
8
|
$fighter2 = $item->team2 != null ? $item->team2->name : "Bye"; |
|
9
|
|
- }else{ |
|
|
9
|
+ } else { |
|
10
|
10
|
$fighter1 = $item->competitors->get(0) != null ? $item->competitors->get(0)->user->name : "Bye"; |
|
11
|
11
|
$fighter2 = $item->competitors->get(1) != null ? $item->competitors->get(1)->user->name : "Bye"; |
|
12
|
12
|
} |
Please login to merge, or discard this patch.