Code Duplication    Length = 4-4 lines in 2 locations

application/modules/import_export/classes/BaseImport.php 2 locations

@@ 207-210 (lines=4) @@
204
        //            ImportBootstrap::addMessage(Factor::ErrorUrlAttribute);
205
        //            return FALSE;
206
        //        }
207
        if (!in_array('prc', $row) && !$this->attributeExist('prc')) {
208
            ImportBootstrap::addMessage(Factor::ErrorPriceAttribute);
209
            return FALSE;
210
        }
211
        //        if (!in_array('var', $row) && !$this->attributeExist('var')) {
212
        //            ImportBootstrap::addMessage(Factor::ErrorNameVariantAttribute);
213
        //            return FALSE;
@@ 215-218 (lines=4) @@
212
        //            ImportBootstrap::addMessage(Factor::ErrorNameVariantAttribute);
213
        //            return FALSE;
214
        //        }
215
        if (!in_array('num', $row) && !$this->attributeExist('prc') && $this->importType == Factor::ImportProducts) {
216
            ImportBootstrap::addMessage(Factor::ErrorNumberAttribute);
217
            return FALSE;
218
        }
219
        if ((count($this->possibleAttributes) - count(array_diff($this->possibleAttributes, $row))) == count($this->attributes)) {
220
            $this->attributes = $row;
221
        } elseif (count($row) === count($this->attributes)) {