| @@ 376-380 (lines=5) @@ | ||
| 373 | $tuple = $this->getTuple($instance); |
|
| 374 | $update = []; |
|
| 375 | ||
| 376 | foreach ($tuple as $i => $v) { |
|
| 377 | if (!array_key_exists($i, $this->original[$key]) || $v !== $this->original[$key][$i]) { |
|
| 378 | $update[$i] = $v; |
|
| 379 | } |
|
| 380 | } |
|
| 381 | ||
| 382 | if (!count($update)) { |
|
| 383 | return $instance; |
|
| @@ 397-401 (lines=5) @@ | ||
| 394 | $tuple = $this->getTuple($instance); |
|
| 395 | $update = []; |
|
| 396 | ||
| 397 | foreach ($tuple as $i => $v) { |
|
| 398 | if (!array_key_exists($i, $this->original[$key]) || $v !== $this->original[$key][$i]) { |
|
| 399 | $update[$i] = $v; |
|
| 400 | } |
|
| 401 | } |
|
| 402 | ||
| 403 | if (!count($update)) { |
|
| 404 | return $instance; |
|