Code Duplication    Length = 3-3 lines in 2 locations

Script/Repository/QuickInsertRepository.php 2 locations

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