Code Duplication    Length = 2-2 lines in 3 locations

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

@@ 320-321 (lines=2) @@
317
			$html .= ' preload="metadata"';
318
		if ( isset( $this->video->text_direction ) )
319
			$html .= ' dir="' . esc_attr( $this->video->text_direction ) . '"';
320
		if ( isset( $this->video->language ) )
321
			$html .= ' lang="' . esc_attr( $this->video->language ) . '"';
322
		$html .= '>';
323
		if ( ! isset( $this->options['freedom'] ) || $this->options['freedom'] === false ) {
324
			$mp4 = $this->video->videos->mp4->url;
@@ 404-405 (lines=2) @@
401
					$html .= 'right" dir="rtl"';
402
				else
403
					$html .= 'left" dir="ltr"';
404
				if ( isset( $this->video->language ) )
405
					$html .= ' lang="' . esc_attr( $this->video->language ) . '"';
406
				$html .= '><span style="padding:3px 0;line-height:1.5em;';
407
				if ( isset( $this->video->skin ) && isset( $this->video->skin->background_color ) ) {
408
					$html .= 'background-color:';
@@ 527-528 (lines=2) @@
524
525
			if ( $vid_type !== '' ) {
526
				$noun = '<a ';
527
				if ( isset( $this->video->language ) )
528
					$noun .= 'hreflang="' . esc_attr( $this->video->language ) . '" ';
529
				if ( $vid_type === 'mp4' )
530
					$noun .= 'type="video/mp4" href="' . esc_url( $this->video->videos->mp4->url, array( 'http', 'https' ) );
531
				elseif ( $vid_type === 'ogv' )