Code Duplication    Length = 7-7 lines in 2 locations

Script/Repository/QuickInsertRepository.php 2 locations

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