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

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