Code Duplication    Length = 6-10 lines in 7 locations

admin_pages/venues/Venues_Admin_Page.core.php 1 location

@@ 441-446 (lines=6) @@
438
439
440
441
	protected function _add_screen_options_category_list() {
442
		$page_title = $this->_admin_page_title;
443
		$this->_admin_page_title = __('Venue Categories', 'event_espresso');
444
		$this->_per_page_screen_option();
445
		$this->_admin_page_title = $page_title;
446
	}
447
448
449

caffeinated/admin/extend/messages/Extend_Messages_Admin_Page.core.php 1 location

@@ 155-160 (lines=6) @@
152
153
154
155
	protected function _add_screen_options_custom_mtps() {
156
		$page_title = $this->_admin_page_title;
157
		$this->_admin_page_title = __('Custom Message Templates', 'event_espresso');
158
		$this->_per_page_screen_option();
159
		$this->_admin_page_title = $page_title;
160
	}
161
162
163

caffeinated/admin/new/pricing/Pricing_Admin_Page.core.php 1 location

@@ 351-356 (lines=6) @@
348
	}
349
350
351
	protected function _add_screen_options_price_types() {
352
		$page_title = $this->_admin_page_title;
353
		$this->_admin_page_title = __('Price Types', 'event_espresso');
354
		$this->_per_page_screen_option();
355
		$this->_admin_page_title = $page_title;
356
	}
357
358
359

admin_pages/messages/Messages_Admin_Page.core.php 1 location

@@ 639-648 (lines=10) @@
636
    }
637
    
638
    
639
    protected function _add_screen_options_global_mtps()
640
    {
641
        /**
642
         * Note: the reason for the value swap here on $this->_admin_page_title is because $this->_per_page_screen_options
643
         * uses the $_admin_page_title property and we want different outputs in the different spots.
644
         */
645
        $page_title              = $this->_admin_page_title;
646
        $this->_admin_page_title = __('Global Message Templates', 'event_espresso');
647
        $this->_per_page_screen_option();
648
        $this->_admin_page_title = $page_title;
649
    }
650
    
651
    

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

@@ 225-230 (lines=6) @@
222
223
224
225
    protected function _add_screen_options_registration_checkins()
226
    {
227
        $page_title = $this->_admin_page_title;
228
        $this->_admin_page_title = __('Check-In Records', 'event_espresso');
229
        $this->_per_page_screen_option();
230
        $this->_admin_page_title = $page_title;
231
    }
232
233

admin_pages/registrations/Registrations_Admin_Page.core.php 1 location

@@ 559-564 (lines=6) @@
556
    }
557
558
559
    protected function _add_screen_options_contact_list()
560
    {
561
        $page_title              = $this->_admin_page_title;
562
        $this->_admin_page_title = __("Contacts", 'event_espresso');
563
        $this->_per_page_screen_option();
564
        $this->_admin_page_title = $page_title;
565
    }
566
567

admin_pages/registration_form/Registration_Form_Admin_Page.core.php 1 location

@@ 219-224 (lines=6) @@
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