Code Duplication    Length = 7-7 lines in 4 locations

admin_pages/about/About_Admin_Page.core.php 2 locations

@@ 190-196 (lines=7) @@
187
188
189
190
	protected function _credits() {
191
		$this->_template_args['admin_page_title'] = sprintf( __('Welcome to Event Espresso %s', 'event_espresso'), EVENT_ESPRESSO_VERSION );
192
		$this->_template_args['admin_page_subtitle'] = __('Thank you for choosing Event Espresso Decaf, the most powerful, and free, Event Management plugin for WordPress.', 'event_espresso');
193
		$template = EE_ABOUT_TEMPLATE_PATH . 'credits.template.php';
194
		$this->_template_args['about_admin_page_content'] = EEH_Template::display_template( $template, $this->_template_args, TRUE );
195
		$this->display_about_admin_page();
196
	}
197
198
	
199
	protected function _decafvpro() {
@@ 207-213 (lines=7) @@
204
		$this->display_about_admin_page();
205
	}
206
207
	protected function _reviews() {
208
		$this->_template_args['admin_page_title'] = __('Rave Reviews About Event Espresso 4', 'event_espresso');
209
		$this->_template_args['admin_page_subtitle'] = __('At Event Espresso, customer satisfaction is our ultimate goal.', 'event_espresso');
210
		$template = EE_ABOUT_TEMPLATE_PATH . 'reviews.template.php';
211
		$this->_template_args['about_admin_page_content'] = EEH_Template::display_template( $template, $this->_template_args, TRUE );
212
		$this->display_about_admin_page();
213
	}
214
215
216
} //end Support_Admin_Page class

caffeinated/admin/extend/about/Extend_About_Admin_Page.core.php 2 locations

@@ 124-130 (lines=7) @@
121
	}
122
123
124
	protected function _overview() {
125
		$this->_admin_page_title = __('About Event Espresso', 'event_espresso');
126
		$this->_template_args['admin_page_subtitle'] = __('Thank you for choosing Event Espresso, the most powerful Event Management plugin for WordPress.', 'event_espresso');
127
		$template = is_readable(EE_ABOUT_CAF_TEMPLATE_PATH . 'ee4-overview.template.php') ? EE_ABOUT_CAF_TEMPLATE_PATH . 'ee4-overview.template.php' : EE_ABOUT_TEMPLATE_PATH . 'ee4-overview.template.php';
128
		$this->_template_args['about_admin_page_content'] = EEH_Template::display_template( $template, $this->_template_args, TRUE );
129
		$this->display_about_admin_page();
130
	}
131
132
	protected function _credits() {
133
	//	$this->_template_args['admin_page_title'] = sprintf( __('Welcome to Event Espresso %s', 'event_espresso'), EVENT_ESPRESSO_VERSION );
@@ 148-154 (lines=7) @@
145
		$this->display_about_admin_page();
146
	}
147
148
	protected function _reviews() {
149
		$this->_template_args['admin_page_title'] = __('Rave Reviews About Event Espresso 4', 'event_espresso');
150
		$this->_template_args['admin_page_subtitle'] = __('At Event Espresso, customer satisfaction is our ultimate goal.', 'event_espresso');
151
		$template = EE_ABOUT_TEMPLATE_PATH . 'reviews.template.php';
152
		$this->_template_args['about_admin_page_content'] = EEH_Template::display_template( $template, $this->_template_args, TRUE );
153
		$this->display_about_admin_page();
154
	}
155
}
156