Code Duplication    Length = 3-3 lines in 2 locations

Script/Repository/QuickInsertRepository.php 2 locations

@@ 403-405 (lines=3) @@
400
        if ($type === 'object') {
401
            if ($id) {
402
                foreach ($result as $key => $value) {
403
                    if ($object->{'get'.ucfirst($flip[$key])}() !== $value) {
404
                        $data[$columns[$flip[$key]]] = $object->{'get'.ucfirst($flip[$key])}();
405
                    }
406
                }
407
            } else {
408
                foreach ($result as $key => $value) {
@@ 410-412 (lines=3) @@
407
            } else {
408
                foreach ($result as $key => $value) {
409
                    if ($object->{'get'.ucfirst($flip[$key])}() !== null) {
410
                        if ($object->{'get'.ucfirst($flip[$key])}() !== $value) {
411
                            $data[$columns[$flip[$key]]] = $object->{'get'.ucfirst($flip[$key])}();
412
                        }
413
                    }
414
                }
415
            }