|
@@ 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 |
|
} |