Code Duplication    Length = 3-3 lines in 2 locations

src/models/Fight.php 2 locations

@@ 228-230 (lines=3) @@
225
    public function updateParentFight($fighterToUpdate, $fight)
226
    {
227
228
        if ($fight != null && ($fight->c1 != null || $fight->c2 == null)) {
229
            $this->$fighterToUpdate = $fight->c1;
230
        }
231
        if ($fight != null && $fight->c1 == null || $fight->c2 != null) {
232
            $this->$fighterToUpdate = $fight->c2;
233
        }
@@ 231-233 (lines=3) @@
228
        if ($fight != null && ($fight->c1 != null || $fight->c2 == null)) {
229
            $this->$fighterToUpdate = $fight->c1;
230
        }
231
        if ($fight != null && $fight->c1 == null || $fight->c2 != null) {
232
            $this->$fighterToUpdate = $fight->c2;
233
        }
234
        if ($fight->c1 == null || $fight->c2 == null) {
235
            $this->$fighterToUpdate = null;
236
        }