Code Duplication    Length = 3-3 lines in 2 locations

Script/Repository/QuickInsertRepository.php 2 locations

@@ 327-329 (lines=3) @@
324
        if ($type === 'object') {
325
            if ($id) {
326
                foreach ($result as $key => $value) {
327
                    if ($object->{'get'.ucfirst($flip[$key])}() !== $value) {
328
                        $data[$columns[$flip[$key]]] = $object->{'get'.ucfirst($flip[$key])}();
329
                    }
330
                }
331
            } else {
332
                foreach ($result as $key => $value) {
@@ 334-336 (lines=3) @@
331
            } else {
332
                foreach ($result as $key => $value) {
333
                    if ($object->{'get'.ucfirst($flip[$key])}() !== null) {
334
                        if ($object->{'get'.ucfirst($flip[$key])}() !== $value) {
335
                            $data[$columns[$flip[$key]]] = $object->{'get'.ucfirst($flip[$key])}();
336
                        }
337
                    }
338
                }
339
            }