Code Duplication    Length = 8-8 lines in 2 locations

caffeinated/brewing_regular.php 1 location

@@ 251-258 (lines=8) @@
248
     * @param array $menuitems
249
     * @return array
250
     */
251
    public function nav_metabox_items(array $menuitems)
252
    {
253
        $menuitems[] = array(
254
            'title'       => __('Venue List', 'event_espresso'),
255
            'url'         => get_post_type_archive_link('espresso_venues'),
256
            'description' => __('Archive page for all venues.', 'event_espresso'),
257
        );
258
        return $menuitems;
259
    }
260
261

core/admin/EE_Admin.core.php 1 location

@@ 390-397 (lines=8) @@
387
	 * @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
388
	 * @return array
389
	 */
390
	private function _get_extra_nav_menu_pages_items() {
391
		$menuitems[] = array(
392
			'title' => __('Event List', 'event_espresso'),
393
			'url' => get_post_type_archive_link( 'espresso_events' ),
394
			'description' => __('Archive page for all events.', 'event_espresso')
395
		);
396
		return apply_filters( 'FHEE__EE_Admin__get_extra_nav_menu_pages_items', $menuitems );
397
	}
398
399
400