Code Duplication    Length = 7-7 lines in 2 locations

Script/Repository/QuickInsertRepository.php 2 locations

@@ 318-324 (lines=7) @@
315
                    if (trim($variable) === '' || trim($variable) === "''" || (is_numeric($variable) && $variable === 0)) {
316
                        $variable = null;
317
                    }
318
                    if ($variable !== null) {
319
                        $values[] = $variable;
320
                        $keys[] = $key;
321
                        if ($key === 'id') {
322
                            $idd = $object->{'get'.ucfirst($value)}();
323
                        }
324
                    }
325
                }
326
            }
327
        } else {
@@ 339-345 (lines=7) @@
336
                    if (trim($variable) === '' || trim($variable) === "''" || (is_numeric($variable) && $variable === 0)) {
337
                        $variable = null;
338
                    }
339
                    if ($variable !== null) {
340
                        $values[] = $variable;
341
                        $keys[] = $key;
342
                        if ($key === 'id') {
343
                            $idd = $object[$value];
344
                        }
345
                    }
346
                }
347
            }
348
        }