@@ -86,7 +86,9 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -21,7 +21,7 @@ |
||
| 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 | |