Code Duplication    Length = 3-3 lines in 2 locations

Script/Repository/QuickInsertRepository.php 2 locations

@@ 313-315 (lines=3) @@
310
                    } else {
311
                        $variable = "'".addslashes(trim($object->{'get'.ucfirst($value)}()))."'";
312
                    }
313
                    if (trim($variable) === '' || trim($variable) === "''" || (is_numeric($variable) && $variable === 0)) {
314
                        $variable = null;
315
                    }
316
                    if ($variable) {
317
                        $values[] = $variable;
318
                        $keys[] = $key;
@@ 334-336 (lines=3) @@
331
                    } else {
332
                        $variable = "'".addslashes(trim($object[$value]))."'";
333
                    }
334
                    if (trim($variable) === '' || trim($variable) === "''" || (is_numeric($variable) && $variable === 0)) {
335
                        $variable = null;
336
                    }
337
                    if ($variable) {
338
                        $values[] = $variable;
339
                        $keys[] = $key;