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

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