@@ -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 | |
@@ -49,7 +49,9 @@ |
||
| 49 | 49 | { |
| 50 | 50 | foreach ($fightsByRound as $fight) { |
| 51 | 51 | $parentGroup = $fight->group->parent; |
| 52 | - if ($parentGroup == null) break; |
|
| 52 | + if ($parentGroup == null) { |
|
| 53 | + break; |
|
| 54 | + } |
|
| 53 | 55 | $parentFight = $parentGroup->fights->get(0); //TODO This Might change when extending to Preliminary |
| 54 | 56 | |
| 55 | 57 | // IN this $fight, is c1 or c2 has the info? |
@@ -63,7 +63,9 @@ discard block |
||
| 63 | 63 | */ |
| 64 | 64 | private static function getActorsToFights(Championship $championship, FightersGroup $group = null) |
| 65 | 65 | { |
| 66 | - if ($group == null) return null; |
|
| 66 | + if ($group == null) { |
|
| 67 | + return null; |
|
| 68 | + } |
|
| 67 | 69 | $fighters = $group->getFighters(); |
| 68 | 70 | $fighterType = $group->getFighterType(); |
| 69 | 71 | if (sizeof($fighters) == 0) { |
@@ -274,10 +276,14 @@ discard block |
||
| 274 | 276 | function hasDeterminedParent() |
| 275 | 277 | { |
| 276 | 278 | |
| 277 | - if ($this->c1 != null && $this->c2 != null) return true; |
|
| 279 | + if ($this->c1 != null && $this->c2 != null) { |
|
| 280 | + return true; |
|
| 281 | + } |
|
| 278 | 282 | foreach ($this->group->children as $child) { |
| 279 | 283 | $fight = $child->fights->get(0); |
| 280 | - if ($fight->c1 != null && $fight->c2 != null) return false; |
|
| 284 | + if ($fight->c1 != null && $fight->c2 != null) { |
|
| 285 | + return false; |
|
| 286 | + } |
|
| 281 | 287 | } |
| 282 | 288 | return true; |
| 283 | 289 | } |
@@ -169,8 +169,9 @@ |
||
| 169 | 169 | |
| 170 | 170 | public function buildName() |
| 171 | 171 | { |
| 172 | - if ($this->settings != null && $this->settings->alias != null) |
|
| 173 | - return $this->settings->alias; |
|
| 172 | + if ($this->settings != null && $this->settings->alias != null) { |
|
| 173 | + return $this->settings->alias; |
|
| 174 | + } |
|
| 174 | 175 | |
| 175 | 176 | if ($this->hasNoCustomSettings()) { |
| 176 | 177 | return $this->category->name; |