| @@ 199-209 (lines=11) @@ | ||
| 196 | /** |
|
| 197 | * @return string |
|
| 198 | */ |
|
| 199 | public function getFighter1Name() |
|
| 200 | { |
|
| 201 | $isTeam = $this->group->championship->category->isTeam; |
|
| 202 | if ($isTeam) { |
|
| 203 | ||
| 204 | return $this->team1 == null ? '' : $this->team1->name; |
|
| 205 | } |
|
| 206 | return |
|
| 207 | $this->competitor1 == null ? 'BYE' : $this->competitor1->user->firstname . " " . $this->competitor1->user->lastname; |
|
| 208 | ||
| 209 | } |
|
| 210 | ||
| 211 | /** |
|
| 212 | * @return string |
|
| @@ 214-224 (lines=11) @@ | ||
| 211 | /** |
|
| 212 | * @return string |
|
| 213 | */ |
|
| 214 | public function getFighter2Name() |
|
| 215 | { |
|
| 216 | $isTeam = $this->group->championship->category->isTeam; |
|
| 217 | if ($isTeam) { |
|
| 218 | ||
| 219 | return $this->team2 == null ? 'BYE' : $this->team2->name; |
|
| 220 | } |
|
| 221 | ||
| 222 | return |
|
| 223 | $this->competitor2 == null ? 'BYE' : $this->competitor2->user->firstname . " " . $this->competitor2->user->lastname; |
|
| 224 | } |
|
| 225 | ||
| 226 | ||
| 227 | /** |
|