Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 921-929 (lines=9) @@
918
            }
919
        }
920
921
        if ($row['商品規格削除フラグ'] == '') {
922
            $ProductClass->setDelFlg(Constant::DISABLED);
923
        } else {
924
            if ($row['商品規格削除フラグ'] == (string) Constant::DISABLED || $row['商品規格削除フラグ'] == (string) Constant::ENABLED) {
925
                $ProductClass->setDelFlg($row['商品規格削除フラグ']);
926
            } else {
927
                $this->addErrors(($data->key() + 1) . '行目の商品規格削除フラグが設定されていません。');
928
            }
929
        }
930
931
        $Product->addProductClass($ProductClass);
932
        $ProductStock = new ProductStock();
@@ 1074-1082 (lines=9) @@
1071
            }
1072
        }
1073
1074
        if ($row['商品規格削除フラグ'] == '') {
1075
            $ProductClass->setDelFlg(Constant::DISABLED);
1076
        } else {
1077
            if ($row['商品規格削除フラグ'] == (string) Constant::DISABLED || $row['商品規格削除フラグ'] == (string) Constant::ENABLED) {
1078
                $ProductClass->setDelFlg($row['商品規格削除フラグ']);
1079
            } else {
1080
                $this->addErrors(($data->key() + 1) . '行目の商品規格削除フラグが設定されていません。');
1081
            }
1082
        }
1083
1084
        $ProductStock = $ProductClass->getProductStock();
1085