Code Duplication    Length = 13-13 lines in 2 locations

src/Eccube/Controller/Admin/Product/CsvImportController.php 2 locations

@@ 1186-1198 (lines=13) @@
1183
            }
1184
        }
1185
1186
        if (isset($row[$headerByKey['price02']]) && StringUtil::isNotBlank($row[$headerByKey['price02']])) {
1187
            $price02 = str_replace(',', '', $row[$headerByKey['price02']]);
1188
            $errors = $this->validator->validate($price02, new GreaterThanOrEqual(['value' => 0]));
1189
            if ($errors->count() === 0) {
1190
                $ProductClass->setPrice02($price02);
1191
            } else {
1192
                $message = trans('admin.common.csv_invalid_greater_than_zero', ['%line%' => $line, '%name%' => $headerByKey['price02']]);
1193
                $this->addErrors($message);
1194
            }
1195
        } else {
1196
            $message = trans('admin.common.csv_invalid_required', ['%line%' => $line, '%name%' => $headerByKey['price02']]);
1197
            $this->addErrors($message);
1198
        }
1199
1200
        if ($this->BaseInfo->isOptionProductDeliveryFee()) {
1201
            if (isset($row[$headerByKey['delivery_fee']]) && StringUtil::isNotBlank($row[$headerByKey['delivery_fee']])) {
@@ 1364-1376 (lines=13) @@
1361
            }
1362
        }
1363
1364
        if (!isset($row[$headerByKey['price02']]) || $row[$headerByKey['price02']] == '') {
1365
            $message = trans('admin.common.csv_invalid_required', ['%line%' => $line, '%name%' => $headerByKey['price02']]);
1366
            $this->addErrors($message);
1367
        } else {
1368
            $price02 = str_replace(',', '', $row[$headerByKey['price02']]);
1369
            $errors = $this->validator->validate($price02, new GreaterThanOrEqual(['value' => 0]));
1370
            if ($errors->count() === 0) {
1371
                $ProductClass->setPrice02($price02);
1372
            } else {
1373
                $message = trans('admin.common.csv_invalid_greater_than_zero', ['%line%' => $line, '%name%' => $headerByKey['price02']]);
1374
                $this->addErrors($message);
1375
            }
1376
        }
1377
1378
        $ProductStock = $ProductClass->getProductStock();
1379