Code Duplication    Length = 14-14 lines in 2 locations

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

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

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

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