x Sorry, these patches are not available anymore due to data migration. Please run a fresh inspection.

Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 901-909 (lines=9) @@
898
            }
899
        }
900
901
        if ($row['商品規格削除フラグ'] == '') {
902
            $ProductClass->setDelFlg(Constant::DISABLED);
903
        } else {
904
            if ($row['商品規格削除フラグ'] == (string) Constant::DISABLED || $row['商品規格削除フラグ'] == (string) Constant::ENABLED) {
905
                $ProductClass->setDelFlg($row['商品規格削除フラグ']);
906
            } else {
907
                $this->addErrors(($data->key() + 1) . '行目の商品規格削除フラグが設定されていません。');
908
            }
909
        }
910
911
        $Product->addProductClass($ProductClass);
912
        $ProductStock = new ProductStock();
@@ 1054-1062 (lines=9) @@
1051
            }
1052
        }
1053
1054
        if ($row['商品規格削除フラグ'] == '') {
1055
            $ProductClass->setDelFlg(Constant::DISABLED);
1056
        } else {
1057
            if ($row['商品規格削除フラグ'] == (string) Constant::DISABLED || $row['商品規格削除フラグ'] == (string) Constant::ENABLED) {
1058
                $ProductClass->setDelFlg($row['商品規格削除フラグ']);
1059
            } else {
1060
                $this->addErrors(($data->key() + 1) . '行目の商品規格削除フラグが設定されていません。');
1061
            }
1062
        }
1063
1064
        $ProductStock = $ProductClass->getProductStock();
1065