Completed
Push — master ( ef6d8d...d43da4 )
by Julien
10:00
created
resources/views/partials/tree/brackets/playerList.blade.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 $prefix = "directElimination";
3
-if ($championship->hasPreliminary() && $numRound ==1){
3
+if ($championship->hasPreliminary() && $numRound == 1) {
4 4
     $prefix = "preliminary";
5 5
 }
6
-$className = $prefix."_select";
7
-$selectName = $prefix."_fighters[]";
6
+$className = $prefix . "_select";
7
+$selectName = $prefix . "_fighters[]";
8 8
 ?>
9 9
 <select name="{{ $selectName }}" class={{$className}}>
10 10
     <option {{ $selected == '' ? ' selected' : '' }} ></option>
Please login to merge, or discard this patch.
src/TreeController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -118,8 +118,8 @@
 block discarded – undo
118 118
         $query = FightersGroup::with('fights')
119 119
             ->where('championship_id', $championship->id);
120 120
 
121
-        if ($championship->hasPreliminary()){
122
-            $query = $query->where('round','>',1);
121
+        if ($championship->hasPreliminary()) {
122
+            $query = $query->where('round', '>', 1);
123 123
         }
124 124
         $groups = $query->get();
125 125
         $fighters = $request->fighters;
Please login to merge, or discard this patch.