Test Failed
Push — master ( dda96a...874268 )
by Julien
03:49
created
src/TreeGen/DirectEliminationTreeGen.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,7 +65,9 @@  discard block
 block discarded – undo
65 65
         $matches = array_chunk($fighters, 2);
66 66
 
67 67
         //If there's already a match in the match array, then that means the next round is round 2, so increase the round number
68
-        if (count($this->brackets)) $roundNumber++;
68
+        if (count($this->brackets)) {
69
+            $roundNumber++;
70
+        }
69 71
 
70 72
         $countMatches = count($matches);
71 73
         //Create the first full round of fighters, some may be blank if waiting on the results of a previous round
@@ -80,7 +82,7 @@  discard block
 block discarded – undo
80 82
                 if ($this->championship->category->isTeam()){
81 83
                     $fighter1 = $this->names->get($roundNumber)[0]->fights[$matchNumber-1]->team1;
82 84
                     $fighter2 = $this->names->get($roundNumber)[0]->fights[$matchNumber-1]->team2;
83
-                }else{
85
+                } else{
84 86
                     $fighter1 = $this->names->get($roundNumber)[$matchNumber-1]->fights[0]->competitor1;
85 87
                     $fighter2 = $this->names->get($roundNumber)[$matchNumber-1]->fights[0]->competitor2;
86 88
                 }
Please login to merge, or discard this patch.