Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 415-420 (lines=6) @@
412
                        $tmpProductClass = $ProductClass;
413
                    }
414
415
                    if (count($addProductClasses) == 0) {
416
                        // 対象がなければエラー
417
                        log_info('商品規格が未選択', array($id));
418
                        $error = array('message' => '商品規格が選択されていません。');
419
                        return $this->render($app, $Product, $tmpProductClass, true, $form, $error);
420
                    }
421
422
                    // 選択された商品規格を登録
423
                    $this->insertProductClass($app, $Product, $addProductClasses);
@@ 479-484 (lines=6) @@
476
                        $tempProductClass = $ProductClass;
477
                    }
478
479
                    if (count($checkProductClasses) == 0) {
480
                        // 対象がなければエラー
481
                        log_info('商品規格が存在しません', array($id));
482
                        $error = array('message' => '商品規格が選択されていません。');
483
                        return $this->render($app, $Product, $tempProductClass, false, $form, $error);
484
                    }
485
486
487
                    // 登録対象と更新対象の行か判断する