Completed
Push — master ( 198978...05fdcf )
by Julien
02:37
created
src/TreeGen/DirectEliminationTreeGen.php 1 patch
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -86,7 +86,9 @@  discard block
 block discarded – undo
86 86
     {
87 87
         foreach ($fightsByRound as $fight) {
88 88
             $parentGroup = $fight->group->parent;
89
-            if ($parentGroup == null) break;
89
+            if ($parentGroup == null) {
90
+                break;
91
+            }
90 92
             $parentFight = $parentGroup->fights->get(0); //TODO This Might change when extending to Preliminary
91 93
 
92 94
             // IN this $fight, is c1 or c2 has the info?
@@ -160,10 +162,14 @@  discard block
 block discarded – undo
160 162
      */
161 163
     public function hasDeterminedParent()
162 164
     {
163
-        if ($this->group->has2Fighters()) return true;
165
+        if ($this->group->has2Fighters()) {
166
+            return true;
167
+        }
164 168
         foreach ($this->group->children as $child) {
165 169
             $fight = $child->fights->get(0);
166
-            if ($fight->has2Fighters()) return false;
170
+            if ($fight->has2Fighters()) {
171
+                return false;
172
+            }
167 173
         }
168 174
         return true;
169 175
     }
Please login to merge, or discard this patch.
resources/views/tree/index.blade.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 $fightingAreas = $setting->fightingAreas;
22 22
 $fights = $championship->fights;
23 23
 $numFighters = $numFighters ??  5;
24
-$isTeam = $isTeam ??  5;;
24
+$isTeam = $isTeam ??  5; ;
25 25
 ?>
26 26
 @include('kendo-tournaments::partials.errors')
27 27
 
Please login to merge, or discard this patch.