@@ -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; |
@@ -45,7 +45,9 @@ |
||
45 | 45 | |
46 | 46 | public function getName() |
47 | 47 | { |
48 | - if ($this == null) return "BYE"; |
|
48 | + if ($this == null) { |
|
49 | + return "BYE"; |
|
50 | + } |
|
49 | 51 | return $this->name; |
50 | 52 | } |
51 | 53 |
@@ -86,15 +86,23 @@ |
||
86 | 86 | |
87 | 87 | public function getName() |
88 | 88 | { |
89 | - if ($this == null) return "BYE"; |
|
90 | - if ($this->user == null) return "BYE"; |
|
89 | + if ($this == null) { |
|
90 | + return "BYE"; |
|
91 | + } |
|
92 | + if ($this->user == null) { |
|
93 | + return "BYE"; |
|
94 | + } |
|
91 | 95 | return $this->user->name; |
92 | 96 | } |
93 | 97 | |
94 | 98 | public function getFullName() |
95 | 99 | { |
96 | - if ($this == null) return "BYE"; |
|
97 | - if ($this->user == null) return "BYE"; |
|
100 | + if ($this == null) { |
|
101 | + return "BYE"; |
|
102 | + } |
|
103 | + if ($this->user == null) { |
|
104 | + return "BYE"; |
|
105 | + } |
|
98 | 106 | return $this->user->firstname . " " . $this->user->lastname; |
99 | 107 | } |
100 | 108 |
@@ -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 |