Code Duplication    Length = 4-4 lines in 2 locations

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

@@ 435-438 (lines=4) @@
432
            }
433
        }
434
        foreach ($fieldsArray as $field) {
435
            if ($field == FALSE && $this->skipErrors == TRUE) {
436
                $this->addError('Error while creating query. Field missing.');
437
                LOG::create()->set('Error while creating query. Field missing.');
438
            }
439
            $fields .= $field != FALSE ? " \n {$field}, " : '';
440
        }
441
        // last comma removing
@@ 564-567 (lines=4) @@
561
562
            } else {
563
564
                if ($this->skipErrors == FALSE) {
565
566
                    $this->addError('Unknown column: ' . $field);
567
                    LOG::create()->set('Неизвестная колонка: ' . $field);
568
                }
569
            }
570
        }