Code Duplication    Length = 2-2 lines in 3 locations

modules/videopress/class.videopress-player.php 3 locations

@@ 308-309 (lines=2) @@
305
			$html .= ' preload="metadata"';
306
		if ( isset( $this->video->text_direction ) )
307
			$html .= ' dir="' . esc_attr( $this->video->text_direction ) . '"';
308
		if ( isset( $this->video->language ) )
309
			$html .= ' lang="' . esc_attr( $this->video->language ) . '"';
310
		$html .= '>';
311
		if ( ! isset( $this->options['freedom'] ) || $this->options['freedom'] === false ) {
312
			$mp4 = $this->video->videos->mp4->url;
@@ 392-393 (lines=2) @@
389
					$html .= 'right" dir="rtl"';
390
				else
391
					$html .= 'left" dir="ltr"';
392
				if ( isset( $this->video->language ) )
393
					$html .= ' lang="' . esc_attr( $this->video->language ) . '"';
394
				$html .= '><span style="padding:3px 0;line-height:1.5em;';
395
				if ( isset( $this->video->skin ) && isset( $this->video->skin->background_color ) ) {
396
					$html .= 'background-color:';
@@ 515-516 (lines=2) @@
512
513
			if ( $vid_type !== '' ) {
514
				$noun = '<a ';
515
				if ( isset( $this->video->language ) )
516
					$noun .= 'hreflang="' . esc_attr( $this->video->language ) . '" ';
517
				if ( $vid_type === 'mp4' )
518
					$noun .= 'type="video/mp4" href="' . esc_url( $this->video->videos->mp4->url, array( 'http', 'https' ) );
519
				elseif ( $vid_type === 'ogv' )