Code Duplication    Length = 16-16 lines in 2 locations

projects/plugins/jetpack/modules/masterbar/admin-menu/class-atomic-admin-menu.php 1 location

@@ 35-50 (lines=16) @@
32
	/**
33
	 * Create the desired menu output.
34
	 */
35
	public function reregister_menu_items() {
36
		parent::reregister_menu_items();
37
38
		$wp_admin = $this->should_link_to_wp_admin();
39
40
		$this->add_my_home_menu( $wp_admin );
41
42
		// Not needed outside of wp-admin.
43
		if ( ! $this->is_api_request ) {
44
			$this->add_browse_sites_link();
45
			$this->add_site_card_menu();
46
			$this->add_new_site_link();
47
		}
48
49
		ksort( $GLOBALS['menu'] );
50
	}
51
52
	/**
53
	 * Adds Plugins menu.

projects/plugins/jetpack/modules/masterbar/admin-menu/class-wpcom-admin-menu.php 1 location

@@ 46-61 (lines=16) @@
43
	/**
44
	 * Create the desired menu output.
45
	 */
46
	public function reregister_menu_items() {
47
		parent::reregister_menu_items();
48
49
		$wp_admin = $this->should_link_to_wp_admin();
50
51
		$this->add_my_home_menu( $wp_admin );
52
53
		// Not needed outside of wp-admin.
54
		if ( ! $this->is_api_request ) {
55
			$this->add_browse_sites_link();
56
			$this->add_site_card_menu();
57
			$this->add_new_site_link();
58
		}
59
60
		ksort( $GLOBALS['menu'] );
61
	}
62
63
	/**
64
	 * Adds the site switcher link if user has more than one site.