Code Duplication    Length = 6-6 lines in 2 locations

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

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