Code Duplication    Length = 14-14 lines in 2 locations

src/wp-includes/media-template.php 2 locations

@@ 1056-1069 (lines=14) @@
1053
				<# } #>
1054
				<?php
1055
1056
				foreach ( $audio_types as $type ):
1057
				?><# if ( ! _.isEmpty( data.model.<?php echo $type ?> ) ) {
1058
					if ( ! _.isUndefined( html5types.<?php echo $type ?> ) ) {
1059
						delete html5types.<?php echo $type ?>;
1060
					}
1061
				#>
1062
				<label class="setting">
1063
					<span><?php echo strtoupper( $type ) ?></span>
1064
					<input type="text" disabled="disabled" data-setting="<?php echo $type ?>" value="{{ data.model.<?php echo $type ?> }}" />
1065
					<button type="button" class="button-link remove-setting"><?php _e( 'Remove audio source' ); ?></button>
1066
				</label>
1067
				<# } #>
1068
				<?php endforeach ?>
1069
1070
				<# if ( ! _.isEmpty( html5types ) ) { #>
1071
				<div class="setting">
1072
					<span><?php _e( 'Add alternate sources for maximum HTML5 playback:' ) ?></span>
@@ 1137-1150 (lines=14) @@
1134
					<button type="button" class="button-link remove-setting"><?php _e( 'Remove video source' ); ?></button>
1135
				</label>
1136
				<# } #>
1137
				<?php foreach ( $video_types as $type ):
1138
				?><# if ( ! _.isEmpty( data.model.<?php echo $type ?> ) ) {
1139
					if ( ! _.isUndefined( html5types.<?php echo $type ?> ) ) {
1140
						delete html5types.<?php echo $type ?>;
1141
					}
1142
				#>
1143
				<label class="setting">
1144
					<span><?php echo strtoupper( $type ) ?></span>
1145
					<input type="text" disabled="disabled" data-setting="<?php echo $type ?>" value="{{ data.model.<?php echo $type ?> }}" />
1146
					<button type="button" class="button-link remove-setting"><?php _e( 'Remove video source' ); ?></button>
1147
				</label>
1148
				<# } #>
1149
				<?php endforeach ?>
1150
				</div>
1151
1152
				<# if ( ! _.isEmpty( html5types ) ) { #>
1153
				<div class="setting">