Code Duplication    Length = 6-6 lines in 2 locations

projects/plugins/jetpack/modules/masterbar/admin-menu/class-admin-menu.php 2 locations

@@ 413-418 (lines=6) @@
410
			add_submenu_page( $themes_slug, esc_attr__( 'Background', 'jetpack' ), __( 'Background', 'jetpack' ), 'customize', esc_url( $customize_background_url ), null, 20 );
411
		}
412
413
		if ( current_theme_supports( 'widgets' ) ) {
414
			remove_submenu_page( 'themes.php', 'widgets.php' );
415
416
			$customize_menu_url = add_query_arg( array( 'autofocus' => array( 'panel' => 'widgets' ) ), $customize_slug );
417
			add_submenu_page( $themes_slug, esc_attr__( 'Widgets', 'jetpack' ), __( 'Widgets', 'jetpack' ), 'customize', esc_url( $customize_menu_url ), null, 20 );
418
		}
419
420
		if ( current_theme_supports( 'menus' ) || current_theme_supports( 'widgets' ) ) {
421
			remove_submenu_page( 'themes.php', 'nav-menus.php' );
@@ 420-425 (lines=6) @@
417
			add_submenu_page( $themes_slug, esc_attr__( 'Widgets', 'jetpack' ), __( 'Widgets', 'jetpack' ), 'customize', esc_url( $customize_menu_url ), null, 20 );
418
		}
419
420
		if ( current_theme_supports( 'menus' ) || current_theme_supports( 'widgets' ) ) {
421
			remove_submenu_page( 'themes.php', 'nav-menus.php' );
422
423
			$customize_menu_url = add_query_arg( array( 'autofocus' => array( 'panel' => 'nav_menus' ) ), $customize_slug );
424
			add_submenu_page( $themes_slug, esc_attr__( 'Menus', 'jetpack' ), __( 'Menus', 'jetpack' ), 'customize', esc_url( $customize_menu_url ), null, 20 );
425
		}
426
427
		$this->migrate_submenus( 'themes.php', $themes_slug );
428
		add_filter(