| @@ 217-226 (lines=10) @@ | ||
| 214 | } |
|
| 215 | ||
| 216 | ||
| 217 | public function getFighter1ShortId($group) |
|
| 218 | { |
|
| 219 | $isTeam = $group->championship->category->isTeam; |
|
| 220 | if ($isTeam) { |
|
| 221 | return $this->team1 == null ? '' : $this->team1->short_id; |
|
| 222 | } |
|
| 223 | ||
| 224 | return $this->competitor1 == null ? '' : $this->competitor1->short_id; |
|
| 225 | ||
| 226 | } |
|
| 227 | ||
| 228 | public function getFighter2ShortId($group) |
|
| 229 | { |
|
| @@ 228-237 (lines=10) @@ | ||
| 225 | ||
| 226 | } |
|
| 227 | ||
| 228 | public function getFighter2ShortId($group) |
|
| 229 | { |
|
| 230 | $isTeam = $group->championship->category->isTeam; |
|
| 231 | if ($isTeam) { |
|
| 232 | return $this->team2 == null ? '' : $this->team2->short_id; |
|
| 233 | } |
|
| 234 | ||
| 235 | return $this->competitor2 == null ? '' : $this->competitor2->short_id; |
|
| 236 | ||
| 237 | } |
|
| 238 | } |
|
| 239 | ||