Code Duplication    Length = 12-17 lines in 2 locations

core/admin/EE_Admin_Page.core.php 2 locations

@@ 2328-2344 (lines=17) @@
2325
     * referencing the callback in the _page_config array property.  This way you can be very specific about what pages
2326
     * these get loaded on.
2327
     */
2328
    private function _espresso_news_post_box()
2329
    {
2330
        $news_box_title = apply_filters(
2331
            'FHEE__EE_Admin_Page___espresso_news_post_box__news_box_title',
2332
            esc_html__('New @ Event Espresso', 'event_espresso')
2333
        );
2334
        add_meta_box(
2335
            'espresso_news_post_box',
2336
            $news_box_title,
2337
            array(
2338
                $this,
2339
                'espresso_news_post_box',
2340
            ),
2341
            $this->_wp_page_slug,
2342
            'side'
2343
        );
2344
    }
2345
2346
2347
    /**
@@ 2450-2461 (lines=12) @@
2447
    }
2448
2449
2450
    protected function _espresso_sponsors_post_box()
2451
    {
2452
        if (apply_filters('FHEE_show_sponsors_meta_box', true)) {
2453
            add_meta_box(
2454
                'espresso_sponsors_post_box',
2455
                esc_html__('Event Espresso Highlights', 'event_espresso'),
2456
                array($this, 'espresso_sponsors_post_box'),
2457
                $this->_wp_page_slug,
2458
                'side'
2459
            );
2460
        }
2461
    }
2462
2463
2464
    public function espresso_sponsors_post_box()