Code Duplication    Length = 7-11 lines in 5 locations

admin_pages/events/Events_Admin_Page.core.php 1 location

@@ 532-538 (lines=7) @@
529
    /**
530
     * Implementing screen options for the category list route.
531
     */
532
    protected function _add_screen_options_category_list()
533
    {
534
        $page_title = $this->_admin_page_title;
535
        $this->_admin_page_title = esc_html__('Categories', 'event_espresso');
536
        $this->_per_page_screen_option();
537
        $this->_admin_page_title = $page_title;
538
    }
539
540
541
    /**

admin_pages/messages/Messages_Admin_Page.core.php 1 location

@@ 674-684 (lines=11) @@
671
    }
672
    
673
    
674
    protected function _add_screen_options_global_mtps()
675
    {
676
        /**
677
         * Note: the reason for the value swap here on $this->_admin_page_title is because $this->_per_page_screen_options
678
         * uses the $_admin_page_title property and we want different outputs in the different spots.
679
         */
680
        $page_title              = $this->_admin_page_title;
681
        $this->_admin_page_title = esc_html__('Global Message Templates', 'event_espresso');
682
        $this->_per_page_screen_option();
683
        $this->_admin_page_title = $page_title;
684
    }
685
    
686
    
687
    protected function _add_screen_options_default()

admin_pages/registration_form/Registration_Form_Admin_Page.core.php 2 locations

@@ 211-217 (lines=7) @@
208
        //todo
209
    }
210
211
    protected function _add_screen_options_default()
212
    {
213
        $page_title              = $this->_admin_page_title;
214
        $this->_admin_page_title = esc_html__('Questions', 'event_espresso');
215
        $this->_per_page_screen_option();
216
        $this->_admin_page_title = $page_title;
217
    }
218
219
    protected function _add_screen_options_question_groups()
220
    {
@@ 219-225 (lines=7) @@
216
        $this->_admin_page_title = $page_title;
217
    }
218
219
    protected function _add_screen_options_question_groups()
220
    {
221
        $page_title              = $this->_admin_page_title;
222
        $this->_admin_page_title = esc_html__('Question Groups', 'event_espresso');
223
        $this->_per_page_screen_option();
224
        $this->_admin_page_title = $page_title;
225
    }
226
227
    //none of the below group are currently used for Event Categories
228
    protected function _add_feature_pointers()

admin_pages/registrations/Registrations_Admin_Page.core.php 1 location

@@ 658-664 (lines=7) @@
655
    }
656
657
658
    protected function _add_screen_options_contact_list()
659
    {
660
        $page_title              = $this->_admin_page_title;
661
        $this->_admin_page_title = esc_html__("Contacts", 'event_espresso');
662
        $this->_per_page_screen_option();
663
        $this->_admin_page_title = $page_title;
664
    }
665
666
667
    public function load_scripts_styles()