Code Duplication    Length = 14-14 lines in 2 locations

src/models/Fight.php 2 locations

@@ 186-199 (lines=14) @@
183
        }
184
    }
185
186
    public function getFighter1Name($group)
187
    {
188
        $isTeam = $group->championship->category->isTeam;
189
        if ($isTeam) {
190
191
            return $this->team1 == null ? '' : $this->team1->name;
192
        }
193
194
        return
195
            $this->competitor1 == null ? '' : $this->competitor1->firstname
196
            . " " .
197
            $this->competitor1 == null ? '' : $this->competitor1 == null ? '' : $this->competitor1->lastname;
198
199
    }
200
201
    public function getFighter2Name($group)
202
    {
@@ 201-214 (lines=14) @@
198
199
    }
200
201
    public function getFighter2Name($group)
202
    {
203
        $isTeam = $group->championship->category->isTeam;
204
        if ($isTeam) {
205
206
            return $this->team2 == null ? '' : $this->team2->name;
207
        }
208
209
        return
210
            $this->competitor2 == null ? '' : $this->competitor2->firstname
211
            . " " .
212
            $this->competitor2 == null ? '' : $this->competitor2 == null ? '' : $this->competitor2->lastname;
213
214
    }
215
216
217
    public function getFighter1ShortId($group)