Code Duplication    Length = 4-4 lines in 2 locations

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

@@ 595-598 (lines=4) @@
592
593
                $this->content[$key]['CategoryId'] = $pathIds[] = $parentId = $newCategoryId;
594
                $this->content[$key]['CategoryIds'] = $pathIds;
595
            } else {
596
                $this->content[$key]['CategoryId'] = $pathIds[] = $parentId = $result->CategoryId;
597
                $this->content[$key]['CategoryIds'] = $pathIds;
598
            }
599
        }
600
    }
601

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

@@ 92-95 (lines=4) @@
89
90
                $this->create()->content[$key]['CategoryId'] = $pathIds[] = $parentId = $newCategoryId;
91
                $this->create()->content[$key]['CategoryIds'] = $pathIds;
92
            } else {
93
                $this->create()->content[$key]['CategoryId'] = $pathIds[] = $parentId = $result->CategoryId;
94
                $this->create()->content[$key]['CategoryIds'] = $pathIds;
95
            }
96
        }
97
    }
98