Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 461-466 (lines=6) @@
458
			add_submenu_page( $appearance_slug, esc_attr__( 'Background', 'jetpack' ), __( 'Background', 'jetpack' ), $appearance_cap, esc_url( $customize_background_url ), null, 20 );
459
		}
460
461
		if ( current_theme_supports( 'widgets' ) ) {
462
			remove_submenu_page( 'themes.php', 'widgets.php' );
463
464
			$customize_menu_url = add_query_arg( array( 'autofocus' => array( 'panel' => 'widgets' ) ), $appearance_slug );
465
			add_submenu_page( $appearance_slug, esc_attr__( 'Widgets', 'jetpack' ), __( 'Widgets', 'jetpack' ), $appearance_cap, esc_url( $customize_menu_url ), null, 20 );
466
		}
467
468
		if ( current_theme_supports( 'menus' ) || current_theme_supports( 'widgets' ) ) {
469
			remove_submenu_page( 'themes.php', 'nav-menus.php' );
@@ 468-473 (lines=6) @@
465
			add_submenu_page( $appearance_slug, esc_attr__( 'Widgets', 'jetpack' ), __( 'Widgets', 'jetpack' ), $appearance_cap, esc_url( $customize_menu_url ), null, 20 );
466
		}
467
468
		if ( current_theme_supports( 'menus' ) || current_theme_supports( 'widgets' ) ) {
469
			remove_submenu_page( 'themes.php', 'nav-menus.php' );
470
471
			$customize_menu_url = add_query_arg( array( 'autofocus' => array( 'panel' => 'nav_menus' ) ), $appearance_slug );
472
			add_submenu_page( $appearance_slug, esc_attr__( 'Menus', 'jetpack' ), __( 'Menus', 'jetpack' ), $appearance_cap, esc_url( $customize_menu_url ), null, 20 );
473
		}
474
475
		$this->migrate_submenus( 'themes.php', $appearance_slug );
476
	}