Code Duplication    Length = 3-3 lines in 2 locations

Script/Repository/QuickInsertRepository.php 2 locations

@@ 411-413 (lines=3) @@
408
        if ($type === 'object') {
409
            if ($object->getId()) {
410
                foreach ($result as $key => $value) {
411
                    if ($object->{'get'.ucfirst($flip[$key])}() !== $value) {
412
                        $data[$columns[$flip[$key]]] = $object->{'get'.ucfirst($flip[$key])}();
413
                    }
414
                }
415
            } else {
416
                foreach ($result as $key => $value) {
@@ 418-420 (lines=3) @@
415
            } else {
416
                foreach ($result as $key => $value) {
417
                    if ($object->{'get'.ucfirst($flip[$key])}() !== null) {
418
                        if ($object->{'get'.ucfirst($flip[$key])}() !== $value) {
419
                            $data[$columns[$flip[$key]]] = $object->{'get'.ucfirst($flip[$key])}();
420
                        }
421
                    }
422
                }
423
            }