@@ -157,8 +157,9 @@ |
||
| 157 | 157 | |
| 158 | 158 | public function buildName() |
| 159 | 159 | { |
| 160 | - if ($this->settings != null && $this->settings->alias != null && $this->settings->alias != '') |
|
| 161 | - return $this->settings->alias; |
|
| 160 | + if ($this->settings != null && $this->settings->alias != null && $this->settings->alias != '') { |
|
| 161 | + return $this->settings->alias; |
|
| 162 | + } |
|
| 162 | 163 | |
| 163 | 164 | if ($this->hasNoCustomSettings()) { |
| 164 | 165 | return $this->category->name; |
@@ -58,7 +58,9 @@ |
||
| 58 | 58 | */ |
| 59 | 59 | private function defaultName() |
| 60 | 60 | { |
| 61 | - if ($this == null || $this->user == null) return "BYE"; |
|
| 61 | + if ($this == null || $this->user == null) { |
|
| 62 | + return "BYE"; |
|
| 63 | + } |
|
| 62 | 64 | return null; |
| 63 | 65 | } |
| 64 | 66 | |
@@ -276,10 +276,14 @@ |
||
| 276 | 276 | function hasDeterminedParent() |
| 277 | 277 | { |
| 278 | 278 | |
| 279 | - if ($this->c1 != null && $this->c2 != null) return true; |
|
| 279 | + if ($this->c1 != null && $this->c2 != null) { |
|
| 280 | + return true; |
|
| 281 | + } |
|
| 280 | 282 | foreach ($this->group->children as $child) { |
| 281 | 283 | $fight = $child->fights->get(0); |
| 282 | - if ($fight->c1 != null && $fight->c2 != null) return false; |
|
| 284 | + if ($fight->c1 != null && $fight->c2 != null) { |
|
| 285 | + return false; |
|
| 286 | + } |
|
| 283 | 287 | } |
| 284 | 288 | return true; |
| 285 | 289 | } |
@@ -201,7 +201,9 @@ |
||
| 201 | 201 | $fightsByRound = $championship->fightsByRound($numRound)->with('group.parent', 'group.children')->get(); |
| 202 | 202 | foreach ($fightsByRound as $fight) { |
| 203 | 203 | $parentGroup = $fight->group->parent; |
| 204 | - if ($parentGroup == null) break; |
|
| 204 | + if ($parentGroup == null) { |
|
| 205 | + break; |
|
| 206 | + } |
|
| 205 | 207 | $parentFight = $parentGroup->fights->get(0); //TODO This Might change when extending to Preliminary |
| 206 | 208 | |
| 207 | 209 | // IN this $fight, is c1 or c2 has the info? |