Code Duplication    Length = 10-10 lines in 3 locations

src/Eccube/Controller/Admin/Customer/CustomerController.php 1 location

@@ 66-75 (lines=10) @@
63
64
        $page_count_param = $request->get('page_count');
65
        // 表示件数はURLパラメターから取得する
66
        if($page_count_param && is_numeric($page_count_param)){
67
            foreach($pageMaxis as $pageMax){
68
                if($page_count_param == $pageMax->getName()){
69
                    $page_count = $pageMax->getName();
70
                    // 表示件数入力値正し場合はSESSIONに保存する
71
                    $session->set('eccube.admin.customer.search.page_count', $page_count);
72
                    break;
73
                }
74
            }
75
        }
76
77
        if ('POST' === $request->getMethod()) {
78

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

@@ 66-75 (lines=10) @@
63
64
        $page_count_param = $request->get('page_count');
65
        // 表示件数はURLパラメターから取得する
66
        if($page_count_param && is_numeric($page_count_param)){
67
            foreach($pageMaxis as $pageMax){
68
                if($page_count_param == $pageMax->getName()){
69
                    $page_count = $pageMax->getName();
70
                    // 表示件数入力値正し場合はSESSIONに保存する
71
                    $session->set('eccube.admin.order.search.page_count', $page_count);
72
                    break;
73
                }
74
            }
75
        }
76
77
        $active = false;
78

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

@@ 75-84 (lines=10) @@
72
73
        $page_count_param = $request->get('page_count');
74
        // 表示件数はURLパラメターから取得する
75
        if ($page_count_param && is_numeric($page_count_param)) {
76
            foreach ($pageMaxis as $pageMax) {
77
                if ($page_count_param == $pageMax->getName()) {
78
                    $page_count = $pageMax->getName();
79
                    // 表示件数入力値正し場合はSESSIONに保存する
80
                    $session->set('eccube.admin.product.search.page_count', $page_count);
81
                    break;
82
                }
83
            }
84
        }
85
86
        $page_status = null;
87
        $active = false;