Code Duplication    Length = 3-3 lines in 2 locations

src/models/Fight.php 2 locations

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