Code Duplication    Length = 8-12 lines in 2 locations

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

@@ 687-698 (lines=12) @@
684
685
686
687
	protected function _template_settings() {
688
		$this->_template_args['values'] = $this->_yes_no_values;
689
		/**
690
		 * Note leaving this filter in for backward compatibility this was moved in 4.6.x
691
		 * from General_Settings_Admin_Page to here.
692
		 */
693
		$this->_template_args = apply_filters( 'FHEE__General_Settings_Admin_Page__template_settings__template_args', $this->_template_args );
694
		$this->_set_add_edit_form_tags( 'update_template_settings' );
695
		$this->_set_publish_post_box_vars( NULL, FALSE, FALSE, NULL, FALSE );
696
		$this->_template_args['admin_page_content'] = EEH_Template::display_template( EVENTS_CAF_TEMPLATE_PATH . 'template_settings.template.php', $this->_template_args, TRUE );
697
		$this->display_admin_page_with_sidebar();
698
	}
699
700
701

caffeinated/admin/extend/registration_form/Extend_Registration_Form_Admin_Page.core.php 1 location

@@ 815-822 (lines=8) @@
812
813
814
815
	protected function _reg_form_settings() {
816
		$this->_template_args['values'] = $this->_yes_no_values;
817
		$this->_template_args = apply_filters( 'FHEE__Extend_Registration_Form_Admin_Page___reg_form_settings___template_args', $this->_template_args );
818
		$this->_set_add_edit_form_tags( 'update_reg_form_settings' );
819
		$this->_set_publish_post_box_vars( NULL, FALSE, FALSE, NULL, FALSE );
820
		$this->_template_args['admin_page_content'] = EEH_Template::display_template( REGISTRATION_FORM_CAF_TEMPLATE_PATH . 'reg_form_settings.template.php', $this->_template_args, TRUE );
821
		$this->display_admin_page_with_sidebar();
822
	}
823
824
825