Code Duplication    Length = 7-7 lines in 2 locations

Script/Repository/QuickInsertRepository.php 2 locations

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