Code Duplication    Length = 2-2 lines in 3 locations

projects/plugins/jetpack/modules/videopress/class.videopress-player.php 3 locations

@@ 335-336 (lines=2) @@
332
		if ( isset( $this->video->text_direction ) ) {
333
			$html .= ' dir="' . esc_attr( $this->video->text_direction ) . '"';
334
		}
335
		if ( isset( $this->video->language ) ) {
336
			$html .= ' lang="' . esc_attr( $this->video->language ) . '"';
337
		}
338
		$html .= '>';
339
		if ( ! isset( $this->options['freedom'] ) || $this->options['freedom'] === false ) {
@@ 431-432 (lines=2) @@
428
				} else {
429
					$html .= 'left" dir="ltr"';
430
				}
431
				if ( isset( $this->video->language ) ) {
432
					$html .= ' lang="' . esc_attr( $this->video->language ) . '"';
433
				}
434
				$html .= '><span style="padding:3px 0;line-height:1.5em;';
435
				if ( isset( $this->video->skin ) && isset( $this->video->skin->background_color ) ) {
@@ 573-574 (lines=2) @@
570
571
			if ( $vid_type !== '' ) {
572
				$noun = '<a ';
573
				if ( isset( $this->video->language ) ) {
574
					$noun .= 'hreflang="' . esc_attr( $this->video->language ) . '" ';
575
				}
576
				if ( $vid_type === 'mp4' ) {
577
					$noun .= 'type="video/mp4" href="' . esc_url( $this->video->videos->mp4->url, array( 'http', 'https' ) );