@@ 361-365 (lines=5) @@ | ||
358 | $tuple = $this->getTuple($instance); |
|
359 | $update = []; |
|
360 | ||
361 | foreach ($tuple as $i => $v) { |
|
362 | if (!array_key_exists($i, $this->original[$key]) || $v !== $this->original[$key][$i]) { |
|
363 | $update[$i] = $v; |
|
364 | } |
|
365 | } |
|
366 | ||
367 | if (!count($update)) { |
|
368 | return $instance; |
|
@@ 382-386 (lines=5) @@ | ||
379 | $tuple = $this->getTuple($instance); |
|
380 | $update = []; |
|
381 | ||
382 | foreach ($tuple as $i => $v) { |
|
383 | if (!array_key_exists($i, $this->original[$key]) || $v !== $this->original[$key][$i]) { |
|
384 | $update[$i] = $v; |
|
385 | } |
|
386 | } |
|
387 | ||
388 | if (!count($update)) { |
|
389 | return $instance; |