Code Duplication    Length = 3-3 lines in 2 locations

src/models/Fight.php 2 locations

@@ 220-222 (lines=3) @@
217
    public function updateParentFight($fighterToUpdate, $fight)
218
    {
219
220
        if ($fight != null && ($fight->c1 != null || $fight->c2 == null)) {
221
            $this->$fighterToUpdate = $fight->c1;
222
        }
223
        if ($fight != null && $fight->c1 == null || $fight->c2 != null) {
224
            $this->$fighterToUpdate = $fight->c2;
225
        }
@@ 223-225 (lines=3) @@
220
        if ($fight != null && ($fight->c1 != null || $fight->c2 == null)) {
221
            $this->$fighterToUpdate = $fight->c1;
222
        }
223
        if ($fight != null && $fight->c1 == null || $fight->c2 != null) {
224
            $this->$fighterToUpdate = $fight->c2;
225
        }
226
        if ($fight->c1 == null || $fight->c2 == null) {
227
            $this->$fighterToUpdate = null;
228
        }