Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 893-901 (lines=9) @@
890
            }
891
        }
892
893
        if ($row['商品規格削除フラグ'] == '') {
894
            $ProductClass->setDelFlg(Constant::DISABLED);
895
        } else {
896
            if ($row['商品規格削除フラグ'] == (string) Constant::DISABLED || $row['商品規格削除フラグ'] == (string) Constant::ENABLED) {
897
                $ProductClass->setDelFlg($row['商品規格削除フラグ']);
898
            } else {
899
                $this->addErrors(($data->key() + 1) . '行目の商品規格削除フラグが設定されていません。');
900
            }
901
        }
902
903
        $Product->addProductClass($ProductClass);
904
        $ProductStock = new ProductStock();
@@ 1046-1054 (lines=9) @@
1043
            }
1044
        }
1045
1046
        if ($row['商品規格削除フラグ'] == '') {
1047
            $ProductClass->setDelFlg(Constant::DISABLED);
1048
        } else {
1049
            if ($row['商品規格削除フラグ'] == (string) Constant::DISABLED || $row['商品規格削除フラグ'] == (string) Constant::ENABLED) {
1050
                $ProductClass->setDelFlg($row['商品規格削除フラグ']);
1051
            } else {
1052
                $this->addErrors(($data->key() + 1) . '行目の商品規格削除フラグが設定されていません。');
1053
            }
1054
        }
1055
1056
        $ProductStock = $ProductClass->getProductStock();
1057