Code Duplication    Length = 3-3 lines in 2 locations

Script/Repository/QuickInsertRepository.php 2 locations

@@ 305-307 (lines=3) @@
302
                    } else {
303
                        $variable = "'".addslashes(trim($object->{'get'.ucfirst($value)}()))."'";
304
                    }
305
                    if (trim($variable) === '' || trim($variable) === "''" || (is_numeric($variable) && $variable === 0)) {
306
                        $variable = null;
307
                    }
308
                    if ($variable) {
309
                        $values[] = $variable;
310
                        $keys[] = $key;
@@ 326-328 (lines=3) @@
323
                    } else {
324
                        $variable = "'".addslashes(trim($object[$value]))."'";
325
                    }
326
                    if (trim($variable) === '' || trim($variable) === "''" || (is_numeric($variable) && $variable === 0)) {
327
                        $variable = null;
328
                    }
329
                    if ($variable) {
330
                        $values[] = $variable;
331
                        $keys[] = $key;