Code Duplication    Length = 3-3 lines in 2 locations

src/models/Fight.php 2 locations

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