Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 338-343 (lines=6) @@
335
                        $tmpProductClass = $ProductClass;
336
                    }
337
338
                    if (count($addProductClasses) == 0) {
339
                        // 対象がなければエラー
340
                        log_info('商品規格が未選択', array($id));
341
                        $error = array('message' => '商品規格が選択されていません。');
342
                        return $this->render($app, $Product, $tmpProductClass, true, $form, $error);
343
                    }
344
345
                    // 選択された商品規格を登録
346
                    $this->insertProductClass($app, $Product, $addProductClasses);
@@ 402-407 (lines=6) @@
399
                        $tempProductClass = $ProductClass;
400
                    }
401
402
                    if (count($checkProductClasses) == 0) {
403
                        // 対象がなければエラー
404
                        log_info('商品規格が存在しません', array($id));
405
                        $error = array('message' => '商品規格が選択されていません。');
406
                        return $this->render($app, $Product, $tempProductClass, false, $form, $error);
407
                    }
408
409
410
                    // 登録対象と更新対象の行か判断する