Code Duplication    Length = 3-3 lines in 2 locations

Script/Repository/QuickInsertRepository.php 2 locations

@@ 387-389 (lines=3) @@
384
        if ($type === 'object') {
385
            if ($id) {
386
                foreach ($result as $key => $value) {
387
                    if ($object->{'get'.ucfirst($flip[$key])}() !== $value) {
388
                        $data[$columns[$flip[$key]]] = $object->{'get'.ucfirst($flip[$key])}();
389
                    }
390
                }
391
            } else {
392
                foreach ($result as $key => $value) {
@@ 394-396 (lines=3) @@
391
            } else {
392
                foreach ($result as $key => $value) {
393
                    if ($object->{'get'.ucfirst($flip[$key])}() !== null) {
394
                        if ($object->{'get'.ucfirst($flip[$key])}() !== $value) {
395
                            $data[$columns[$flip[$key]]] = $object->{'get'.ucfirst($flip[$key])}();
396
                        }
397
                    }
398
                }
399
            }