Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 909-917 (lines=9) @@
906
            }
907
        }
908
909
        if ($row['商品規格削除フラグ'] == '') {
910
            $ProductClass->setDelFlg(Constant::DISABLED);
911
        } else {
912
            if ($row['商品規格削除フラグ'] == (string) Constant::DISABLED || $row['商品規格削除フラグ'] == (string) Constant::ENABLED) {
913
                $ProductClass->setDelFlg($row['商品規格削除フラグ']);
914
            } else {
915
                $this->addErrors(($data->key() + 1) . '行目の商品規格削除フラグが設定されていません。');
916
            }
917
        }
918
919
        $Product->addProductClass($ProductClass);
920
        $ProductStock = new ProductStock();
@@ 1062-1070 (lines=9) @@
1059
            }
1060
        }
1061
1062
        if ($row['商品規格削除フラグ'] == '') {
1063
            $ProductClass->setDelFlg(Constant::DISABLED);
1064
        } else {
1065
            if ($row['商品規格削除フラグ'] == (string) Constant::DISABLED || $row['商品規格削除フラグ'] == (string) Constant::ENABLED) {
1066
                $ProductClass->setDelFlg($row['商品規格削除フラグ']);
1067
            } else {
1068
                $this->addErrors(($data->key() + 1) . '行目の商品規格削除フラグが設定されていません。');
1069
            }
1070
        }
1071
1072
        $ProductStock = $ProductClass->getProductStock();
1073