Code Duplication    Length = 9-9 lines in 2 locations

src/wp-admin/setup-config.php 1 location

@@ 114-122 (lines=9) @@
111
}
112
113
switch($step) {
114
	case -1:
115
		if ( wp_can_install_language_pack() && empty( $language ) && ( $languages = wp_get_available_translations() ) ) {
116
			setup_config_display_header( 'language-chooser' );
117
			echo '<h1 class="screen-reader-text">Select a default language</h1>';
118
			echo '<form id="setup" method="post" action="?step=0">';
119
			wp_install_language_form( $languages );
120
			echo '</form>';
121
			break;
122
		}
123
124
		// Deliberately fall through if we can't reach the translations API.
125

src/wp-admin/install.php 1 location

@@ 290-298 (lines=9) @@
287
$scripts_to_print = array( 'jquery' );
288
289
switch($step) {
290
	case 0: // Step 0
291
		if ( wp_can_install_language_pack() && empty( $language ) && ( $languages = wp_get_available_translations() ) ) {
292
			$scripts_to_print[] = 'language-chooser';
293
			display_header( 'language-chooser' );
294
			echo '<form id="setup" method="post" action="?step=1">';
295
			wp_install_language_form( $languages );
296
			echo '</form>';
297
			break;
298
		}
299
300
		// Deliberately fall through if we can't reach the translations API.
301