@@ -206,7 +206,7 @@ |
||
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 |
@@ -206,7 +206,9 @@ |
||
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 |
@@ -25,7 +25,7 @@ |
||
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); |
@@ -53,7 +53,9 @@ |
||
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 |