Code Duplication    Length = 6-6 lines in 2 locations

application/modules/import_export/classes/BaseImport.php 1 location

@@ 466-471 (lines=6) @@
463
                    )->row();
464
                    $data = (!empty($propery->data)) ? unserialize($propery->data) : [];
465
                    $changed = false;
466
                    foreach ($values as $v) {
467
                        if (!in_array($v, $data, true)) {
468
                            $changed = true;
469
                            $data[] = $v;
470
                        }
471
                    }
472
                    if ($changed) {
473
                        $this->db->update('shop_product_properties_i18n', ['data' => serialize($data)], ['id' => $properyAlias[$nodeKey], 'locale' => $this->languages]);
474
                    }

application/modules/import_export/classes/PropertiesImport.php 1 location

@@ 77-82 (lines=6) @@
74
                    )->row();
75
                    $data = (!empty($propery->data)) ? unserialize($propery->data) : [];
76
                    $changed = false;
77
                    foreach ($values as $v) {
78
                        if (!in_array($v, $data)) {
79
                            $changed = true;
80
                            $data[] = $v;
81
                        }
82
                    }
83
                    if ($changed) {
84
                        $this->db->update('shop_product_properties_i18n', ['data' => serialize($data)], ['id' => $properyAlias[$nodeKey], 'locale' => $this->languages]);
85
                    }