Code Duplication    Length = 11-11 lines in 2 locations

src/models/Fight.php 2 locations

@@ 211-221 (lines=11) @@
208
    }
209
210
211
    public function getFighter1ShortId()
212
    {
213
214
        $isTeam = $this->group->championship->category->isTeam;
215
        if ($isTeam) {
216
            return $this->team1 == null ? '' : $this->team1->short_id;
217
        }
218
219
        return $this->competitor1 == null ? '' : $this->competitor1->short_id;
220
221
    }
222
223
    public function getFighter2ShortId()
224
    {
@@ 223-233 (lines=11) @@
220
221
    }
222
223
    public function getFighter2ShortId()
224
    {
225
226
        $isTeam = $this->group->championship->category->isTeam;
227
        if ($isTeam) {
228
            return $this->team2 == null ? '' : $this->team2->short_id;
229
        }
230
231
        return $this->competitor2 == null ? '' : $this->competitor2->short_id;
232
233
    }
234
}