Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 425-430 (lines=6) @@
422
                        $tmpProductClass = $ProductClass;
423
                    }
424
425
                    if (count($addProductClasses) == 0) {
426
                        // 対象がなければエラー
427
                        log_info('商品規格が未選択', array($id));
428
                        $error = array('message' => '商品規格が選択されていません。');
429
                        return $this->render($app, $Product, $tmpProductClass, true, $form, $error);
430
                    }
431
432
                    // 選択された商品規格を登録
433
                    $this->insertProductClass($app, $Product, $addProductClasses);
@@ 489-494 (lines=6) @@
486
                        $tempProductClass = $ProductClass;
487
                    }
488
489
                    if (count($checkProductClasses) == 0) {
490
                        // 対象がなければエラー
491
                        log_info('商品規格が存在しません', array($id));
492
                        $error = array('message' => '商品規格が選択されていません。');
493
                        return $this->render($app, $Product, $tempProductClass, false, $form, $error);
494
                    }
495
496
497
                    // 登録対象と更新対象の行か判断する