Code Duplication    Length = 8-8 lines in 2 locations

caffeinated/brewing_regular.php 1 location

@@ 218-225 (lines=8) @@
215
	}
216
217
218
	public function nav_metabox_items( $menuitems ) {
219
		$menuitems[] = array(
220
			'title' => __('Venue List', 'event_espresso'),
221
			'url' => get_post_type_archive_link( 'espresso_venues' ),
222
			'description' => __('Archive page for all venues.', 'event_espresso')
223
			);
224
		return $menuitems;
225
	}
226
227
	/**
228
	 * Adds the payment methods in {event-espresso-core}/caffeinated/payment_methods

core/admin/EE_Admin.core.php 1 location

@@ 396-403 (lines=8) @@
393
	 * @todo  for now this method is just in place so when it gets abstracted further we can substitute in whatever method we use for getting the extra nav menu items
394
	 * @return array
395
	 */
396
	private function _get_extra_nav_menu_pages_items() {
397
		$menuitems[] = array(
398
			'title' => __('Event List', 'event_espresso'),
399
			'url' => get_post_type_archive_link( 'espresso_events' ),
400
			'description' => __('Archive page for all events.', 'event_espresso')
401
		);
402
		return apply_filters( 'FHEE__EE_Admin__get_extra_nav_menu_pages_items', $menuitems );
403
	}
404
405
406