Code Duplication    Length = 3-3 lines in 2 locations

modules/videopress/shortcode.php 2 locations

@@ 77-79 (lines=3) @@
74
	/**
75
	 * If there was an invalid or unspecified width, set the width equal to the theme's `$content_width`.
76
	 */
77
	if ( 0 === $attr['width'] && isset( $content_width ) && $content_width >= VIDEOPRESS_MIN_WIDTH ) {
78
		$attr['width'] = $content_width;
79
	}
80
81
	/**
82
	 * If the width isn't an even number, reduce it by one (making it even).
@@ 70-72 (lines=3) @@
67
	 */
68
	if ( $attr['width'] < VIDEOPRESS_MIN_WIDTH ) {
69
		$attr['width'] = 0;
70
	} elseif ( isset( $content_width ) && $content_width > VIDEOPRESS_MIN_WIDTH && $attr['width'] > $content_width ) {
71
		$attr['width'] = 0;
72
	}
73
74
	/**
75
	 * If there was an invalid or unspecified width, set the width equal to the theme's `$content_width`.