Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 931-939 (lines=9) @@
928
            }
929
        }
930
931
        if ($row['商品規格削除フラグ'] == '') {
932
            $ProductClass->setDelFlg(Constant::DISABLED);
933
        } else {
934
            if ($row['商品規格削除フラグ'] == (string) Constant::DISABLED || $row['商品規格削除フラグ'] == (string) Constant::ENABLED) {
935
                $ProductClass->setDelFlg($row['商品規格削除フラグ']);
936
            } else {
937
                $this->addErrors(($data->key() + 1) . '行目の商品規格削除フラグが設定されていません。');
938
            }
939
        }
940
941
        $Product->addProductClass($ProductClass);
942
        $ProductStock = new ProductStock();
@@ 1084-1092 (lines=9) @@
1081
            }
1082
        }
1083
1084
        if ($row['商品規格削除フラグ'] == '') {
1085
            $ProductClass->setDelFlg(Constant::DISABLED);
1086
        } else {
1087
            if ($row['商品規格削除フラグ'] == (string) Constant::DISABLED || $row['商品規格削除フラグ'] == (string) Constant::ENABLED) {
1088
                $ProductClass->setDelFlg($row['商品規格削除フラグ']);
1089
            } else {
1090
                $this->addErrors(($data->key() + 1) . '行目の商品規格削除フラグが設定されていません。');
1091
            }
1092
        }
1093
1094
        $ProductStock = $ProductClass->getProductStock();
1095