Code Duplication    Length = 7-7 lines in 2 locations

Script/Repository/QuickInsertRepository.php 2 locations

@@ 308-314 (lines=7) @@
305
                    if (trim($variable) === '' || trim($variable) === "''" || (is_numeric($variable) && $variable === 0)) {
306
                        $variable = null;
307
                    }
308
                    if ($variable) {
309
                        $values[] = $variable;
310
                        $keys[] = $key;
311
                        if ($key === 'id') {
312
                            $idd = $object->{'get'.ucfirst($value)}();
313
                        }
314
                    }
315
                }
316
            }
317
        } else {
@@ 329-335 (lines=7) @@
326
                    if (trim($variable) === '' || trim($variable) === "''" || (is_numeric($variable) && $variable === 0)) {
327
                        $variable = null;
328
                    }
329
                    if ($variable) {
330
                        $values[] = $variable;
331
                        $keys[] = $key;
332
                        if ($key === 'id') {
333
                            $idd = $object[$value];
334
                        }
335
                    }
336
                }
337
            }
338
        }