Code Duplication    Length = 14-14 lines in 2 locations

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

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

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.