Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 447-452 (lines=6) @@
444
                    }
445
                    $this->db->insert_batch('shop_product_properties_data', $insertdata);
446
447
                    foreach ($node['CategoryIds'] as $categoryId) {
448
                        $result = $this->db->query('SELECT * FROM `shop_product_properties_categories` WHERE `category_id` = ? AND `property_id` = ?', [$categoryId, $properyAlias[$nodeKey]])->row();
449
                        if (!($result instanceof \stdClass) && !empty($nodeElement)) {
450
                            $this->db->insert('shop_product_properties_categories', ['property_id' => $properyAlias[$nodeKey], 'category_id' => $categoryId]);
451
                        }
452
                    }
453
454
                    $propery = $this->db->query(
455
                        '

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

@@ 61-66 (lines=6) @@
58
                    }
59
                    $this->db->insert_batch('shop_product_properties_data', $insertdata);
60
61
                    foreach ($node['CategoryIds'] as $categoryId) {
62
                        $result = $this->db->query('SELECT * FROM `shop_product_properties_categories` WHERE `category_id` = ? AND `property_id` = ?', [$categoryId, $properyAlias[$nodeKey]])->row();
63
                        if (!($result instanceof stdClass) && !empty($nodeElement)) {
64
                            $this->db->insert('shop_product_properties_categories', ['property_id' => $properyAlias[$nodeKey], 'category_id' => $categoryId]);
65
                        }
66
                    }
67
68
                    $propery = $this->db->query(
69
                        '