Code Duplication    Length = 8-8 lines in 2 locations

src/Eccube/Controller/Admin/Order/OrderController.php 1 location

@@ 465-472 (lines=8) @@
462
            }
463
        }
464
        try {
465
            if ($count) {
466
                $this->entityManager->flush();
467
                $msg = $this->translator->trans('admin.order.index.bulk_order_status_success_count', [
468
                    '%count%' => $count,
469
                    '%status%' => $OrderStatus->getName(),
470
                ]);
471
                $this->addSuccess($msg, 'admin');
472
            }
473
        } catch (\Exception $e) {
474
            log_error('Bulk order status error', [$e]);
475
            $this->addError('admin.flash.register_failed', 'admin');

src/Eccube/Controller/Admin/Product/ProductController.php 1 location

@@ 1023-1030 (lines=8) @@
1020
            }
1021
        }
1022
        try {
1023
            if ($count) {
1024
                $this->entityManager->flush();
1025
                $msg = $this->translator->trans('admin.product.index.bulk_product_status_success_count', [
1026
                    '%count%' => $count,
1027
                    '%status%' => $ProductStatus->getName(),
1028
                ]);
1029
                $this->addSuccess($msg, 'admin');
1030
            }
1031
        } catch (\Exception $e) {
1032
            $this->addError($e->getMessage(), 'admin');
1033
        }