| @@ 129-131 (lines=3) @@ | ||
| 126 | public function updateParentFight($fighterToUpdate, $fight) |
|
| 127 | { |
|
| 128 | if ($fight != null) { |
|
| 129 | if (($fight->c1 != null || $fight->c2 == null)) { |
|
| 130 | $this->$fighterToUpdate = $fight->c1; |
|
| 131 | } |
|
| 132 | if ($fight->c1 == null || $fight->c2 != null) { |
|
| 133 | $this->$fighterToUpdate = $fight->c2; |
|
| 134 | } |
|
| @@ 132-134 (lines=3) @@ | ||
| 129 | if (($fight->c1 != null || $fight->c2 == null)) { |
|
| 130 | $this->$fighterToUpdate = $fight->c1; |
|
| 131 | } |
|
| 132 | if ($fight->c1 == null || $fight->c2 != null) { |
|
| 133 | $this->$fighterToUpdate = $fight->c2; |
|
| 134 | } |
|
| 135 | if ($fight->dontHave2Fighters()) { |
|
| 136 | $this->$fighterToUpdate = null; |
|
| 137 | } |
|