Code Duplication    Length = 3-3 lines in 2 locations

modules/videopress/shortcode.php 2 locations

@@ 129-131 (lines=3) @@
126
		 */
127
		if ( $attr['width'] < VIDEOPRESS_MIN_WIDTH ) {
128
			$attr['width'] = 0;
129
		} elseif ( isset( $content_width ) && $content_width > VIDEOPRESS_MIN_WIDTH && $attr['width'] > $content_width ) {
130
			$attr['width'] = 0;
131
		}
132
133
		/**
134
		 * If there was an invalid or unspecified width, set the width equal to the theme's `$content_width`.
@@ 136-138 (lines=3) @@
133
		/**
134
		 * If there was an invalid or unspecified width, set the width equal to the theme's `$content_width`.
135
		 */
136
		if ( 0 === $attr['width'] && isset( $content_width ) && $content_width >= VIDEOPRESS_MIN_WIDTH ) {
137
			$attr['width'] = $content_width;
138
		}
139
140
		/**
141
		 * If the width isn't an even number, reduce it by one (making it even).