Code Duplication    Length = 3-3 lines in 2 locations

Script/Repository/QuickInsertRepository.php 2 locations

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