Code Duplication    Length = 4-4 lines in 2 locations

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

@@ 184-187 (lines=4) @@
181
        $headerArray = [];
182
        $columnNumber = 0;
183
        foreach ($someProductData as $field => $junk) {
184
            if (FALSE == $abbr = $this->getAbbreviation($field)) {
185
                $this->addError('Error. Abbreviation not found.');
186
                LOG::create()->set('Error. Abbreviation not found.');
187
            }
188
            $objPHPExcel->getActiveSheet()->setCellValueByColumnAndRow($columnNumber++, 1, $abbr);
189
        }
190
        $rowNumber = 2;
@@ 390-393 (lines=4) @@
387
            $someProductData = current($this->resultArray);
388
            $headerArray = [];
389
            foreach ($someProductData as $field => $junk) {
390
                if (FALSE == $abbr = $this->getAbbreviation($field)) {
391
                    $this->addError('Error. Abbreviation not found.');
392
                    LOG::create()->set('Ошибка. Абревиатуру не найдено.');
393
                }
394
                $headerArray[] = $abbr;
395
            }
396
            $fileContents .= $this->getCsvLine($headerArray);