Passed
Push — master ( 14ed1b...ecb8e9 )
by Julien
31:40
created
src/models/FightersGroup.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -206,7 +206,7 @@
 block discarded – undo
206 206
             foreach ($fightsByRound as $numFight => $fight) {
207 207
 
208 208
                 $parentGroup = $fight->group->parent;
209
-                if ($parentGroup == null ) break;
209
+                if ($parentGroup == null) break;
210 210
                 $parentFight = $parentGroup->fights->get(0);
211 211
 
212 212
                 // IN this $fight, if it is the first child or the second child --> c1 or c2 in parent
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -206,7 +206,9 @@
 block discarded – undo
206 206
             foreach ($fightsByRound as $numFight => $fight) {
207 207
 
208 208
                 $parentGroup = $fight->group->parent;
209
-                if ($parentGroup == null ) break;
209
+                if ($parentGroup == null ) {
210
+                    break;
211
+                }
210 212
                 $parentFight = $parentGroup->fights->get(0);
211 213
 
212 214
                 // IN this $fight, if it is the first child or the second child --> c1 or c2 in parent
Please login to merge, or discard this patch.
src/TreeGen/DirectEliminationTreeGen.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
         $this->championship = $championship;
26 26
         $this->names = $names;
27 27
 
28
-        $this->firstRoundName = $names->first()->map(function ($item) use ($championship) {
28
+        $this->firstRoundName = $names->first()->map(function($item) use ($championship) {
29 29
             $fighters = $item->getFighters();
30 30
             $fighter1 = $fighters->get(0);
31 31
             $fighter2 = $fighters->get(1);
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,9 @@
 block discarded – undo
53 53
         $matches = array_chunk($fighters, 2);
54 54
 
55 55
         //If there's already a match in the match array, then that means the next round is round 2, so increase the round number
56
-        if (count($this->brackets)) $roundNumber++;
56
+        if (count($this->brackets)) {
57
+            $roundNumber++;
58
+        }
57 59
 
58 60
         $countMatches = count($matches);
59 61
         //Create the first full round of fighters, some may be blank if waiting on the results of a previous round
Please login to merge, or discard this patch.