Code Duplication    Length = 14-14 lines in 2 locations

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

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

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

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