Code Duplication    Length = 7-11 lines in 6 locations

admin_pages/registration_form/Registration_Form_Admin_Page.core.php 2 locations

@@ 200-206 (lines=7) @@
197
        // todo
198
    }
199
200
    protected function _add_screen_options_default()
201
    {
202
        $page_title = $this->_admin_page_title;
203
        $this->_admin_page_title = esc_html__('Questions', 'event_espresso');
204
        $this->_per_page_screen_option();
205
        $this->_admin_page_title = $page_title;
206
    }
207
208
    protected function _add_screen_options_question_groups()
209
    {
@@ 208-214 (lines=7) @@
205
        $this->_admin_page_title = $page_title;
206
    }
207
208
    protected function _add_screen_options_question_groups()
209
    {
210
        $page_title = $this->_admin_page_title;
211
        $this->_admin_page_title = esc_html__('Question Groups', 'event_espresso');
212
        $this->_per_page_screen_option();
213
        $this->_admin_page_title = $page_title;
214
    }
215
216
    // none of the below group are currently used for Event Categories
217
    protected function _add_feature_pointers()

admin_pages/messages/Messages_Admin_Page.core.php 1 location

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

caffeinated/admin/extend/registrations/Extend_Registrations_Admin_Page.core.php 1 location

@@ 238-244 (lines=7) @@
235
    /**
236
     * Register screen options for registration_checkins route
237
     */
238
    protected function _add_screen_options_registration_checkins()
239
    {
240
        $page_title = $this->_admin_page_title;
241
        $this->_admin_page_title = esc_html__('Check-In Records', 'event_espresso');
242
        $this->_per_page_screen_option();
243
        $this->_admin_page_title = $page_title;
244
    }
245
246
247
    /**

admin_pages/registrations/Registrations_Admin_Page.core.php 1 location

@@ 740-746 (lines=7) @@
737
     * @throws InvalidInterfaceException
738
     * @since 4.10.2.p
739
     */
740
    protected function _add_screen_options_contact_list()
741
    {
742
        $page_title = $this->_admin_page_title;
743
        $this->_admin_page_title = esc_html__('Contacts', 'event_espresso');
744
        $this->_per_page_screen_option();
745
        $this->_admin_page_title = $page_title;
746
    }
747
748
749
    public function load_scripts_styles()

admin_pages/events/Events_Admin_Page.core.php 1 location

@@ 547-553 (lines=7) @@
544
    /**
545
     * Implementing screen options for the category list route.
546
     */
547
    protected function _add_screen_options_category_list()
548
    {
549
        $page_title = $this->_admin_page_title;
550
        $this->_admin_page_title = esc_html__('Categories', 'event_espresso');
551
        $this->_per_page_screen_option();
552
        $this->_admin_page_title = $page_title;
553
    }
554
555
556
    /**