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

@@ 39-52 (lines=14) @@
36
	/**
37
	 * Create the desired menu output.
38
	 */
39
	public function reregister_menu_items() {
40
		parent::reregister_menu_items();
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
		$this->add_jetpack_menu();
50
51
		ksort( $GLOBALS['menu'] );
52
	}
53
54
	/**
55
	 * Adds the site switcher link if user has more than one site.