Code Duplication    Length = 12-24 lines in 2 locations

admin_pages/events/Events_Admin_Page.core.php 1 location

@@ 1498-1521 (lines=24) @@
1495
     *
1496
     * @return void
1497
     */
1498
    protected function _register_event_editor_meta_boxes()
1499
    {
1500
        $this->verify_cpt_object();
1501
        // add_meta_box(
1502
        //     'espresso_event_editor_tickets',
1503
        //     esc_html__('Event Datetime & Ticket', 'event_espresso'),
1504
        //     array($this, 'ticket_metabox'),
1505
        //     $this->page_slug,
1506
        //     'normal',
1507
        //     'high'
1508
        // );
1509
        add_meta_box(
1510
            'espresso_event_editor_event_options',
1511
            esc_html__('Event Registration Options', 'event_espresso'),
1512
            array($this, 'registration_options_meta_box'),
1513
            $this->page_slug,
1514
            'side',
1515
            'default'
1516
        );
1517
        // NOTE: if you're looking for other metaboxes in here,
1518
        // where a metabox has a related management page in the admin
1519
        // you will find it setup in the related management page's "_Hooks" file.
1520
        // i.e. messages metabox is found in "espresso_events_Messages_Hooks.class.php".
1521
    }
1522
1523
1524
    /**

caffeinated/admin/extend/events/Extend_Events_Admin_Page.core.php 1 location

@@ 902-913 (lines=12) @@
899
     * @return void
900
     * @throws EE_Error
901
     */
902
    protected function _premium_event_editor_meta_boxes()
903
    {
904
        $this->verify_cpt_object();
905
        add_meta_box(
906
            'espresso_event_editor_event_options',
907
            esc_html__('Event Registration Options', 'event_espresso'),
908
            array($this, 'registration_options_meta_box'),
909
            $this->page_slug,
910
            'side',
911
            'core'
912
        );
913
    }
914
915
916
    /**