Code Duplication    Length = 4-4 lines in 2 locations

modules/masterbar/admin-menu/class-admin-menu.php 2 locations

@@ 552-555 (lines=4) @@
549
		$admin_slug = 'tools.php';
550
		$menu_slug  = $calypso ? 'https://wordpress.com/marketing/tools/' . $domain : $admin_slug;
551
552
		if ( $this->is_wpcom_site() || jetpack_is_atomic_site() ) {
553
			add_submenu_page( $menu_slug, esc_attr__( 'Marketing', 'jetpack' ), __( 'Marketing', 'jetpack' ), 'manage_options', 'https://wordpress.com/marketing/tools/' . $domain, null, 5 );
554
			add_submenu_page( $menu_slug, esc_attr__( 'Earn', 'jetpack' ), __( 'Earn', 'jetpack' ), 'manage_options', 'https://wordpress.com/earn/' . $domain, null, 10 );
555
		}
556
557
		if ( $calypso ) {
558
			remove_menu_page( $admin_slug );
@@ 584-587 (lines=4) @@
581
			remove_submenu_page( 'options-general.php', 'options-writing.php' );
582
		}
583
584
		if ( $this->is_wpcom_site() || jetpack_is_atomic_site() ) {
585
			add_options_page( esc_attr__( 'Domains', 'jetpack' ), __( 'Domains', 'jetpack' ), 'manage_options', 'https://wordpress.com/domains/manage/' . $domain, null, 1 );
586
			add_options_page( esc_attr__( 'Hosting Configuration', 'jetpack' ), __( 'Hosting Configuration', 'jetpack' ), 'manage_options', 'https://wordpress.com/hosting-config/' . $domain, null, 6 );
587
		}
588
	}
589
590
	/**