Code Duplication    Length = 8-8 lines in 2 locations

caffeinated/brewing_regular.php 1 location

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

core/admin/EE_Admin.core.php 1 location

@@ 407-414 (lines=8) @@
404
	 * @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
405
	 * @return array
406
	 */
407
	private function _get_extra_nav_menu_pages_items() {
408
		$menuitems[] = array(
409
			'title' => __('Event List', 'event_espresso'),
410
			'url' => get_post_type_archive_link( 'espresso_events' ),
411
			'description' => __('Archive page for all events.', 'event_espresso')
412
		);
413
		return apply_filters( 'FHEE__EE_Admin__get_extra_nav_menu_pages_items', $menuitems );
414
	}
415
416
417