Code Duplication    Length = 3-3 lines in 2 locations

Script/Repository/QuickInsertRepository.php 2 locations

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