| @@ 337-341 (lines=5) @@ | ||
| 334 | $tuple = $this->getTuple($instance); |
|
| 335 | $update = []; |
|
| 336 | ||
| 337 | foreach ($tuple as $i => $v) { |
|
| 338 | if (!array_key_exists($i, $this->original[$key]) || $v !== $this->original[$key][$i]) { |
|
| 339 | $update[$i] = $v; |
|
| 340 | } |
|
| 341 | } |
|
| 342 | ||
| 343 | if (!count($update)) { |
|
| 344 | return $instance; |
|
| @@ 358-362 (lines=5) @@ | ||
| 355 | $tuple = $this->getTuple($instance); |
|
| 356 | $update = []; |
|
| 357 | ||
| 358 | foreach ($tuple as $i => $v) { |
|
| 359 | if (!array_key_exists($i, $this->original[$key]) || $v !== $this->original[$key][$i]) { |
|
| 360 | $update[$i] = $v; |
|
| 361 | } |
|
| 362 | } |
|
| 363 | ||
| 364 | if (!count($update)) { |
|
| 365 | return $instance; |
|