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