Code Duplication    Length = 6-8 lines in 2 locations

modules/shortcodes/youtube.php 2 locations

@@ 221-226 (lines=6) @@
218
		$w = $input_w;
219
		$h = $input_h;
220
	} elseif ( 0 === $input_w && 0 === $input_h ) {
221
		if ( isset( $qargs['fmt'] ) && intval( $qargs['fmt'] ) ) {
222
			$w = ( ! empty( $content_width ) ? min( $content_width, 480 ) : 480 );
223
		} else {
224
			$w = ( ! empty( $content_width ) ? min( $content_width, $default_width ) : $default_width );
225
			$h = ceil( ( $w / 16 ) * 9 );
226
		}
227
	} elseif ( $input_w > 0 ) {
228
		$w = $input_w;
229
		$h = ceil( ( $w / 16 ) * 9 );
@@ 230-237 (lines=8) @@
227
	} elseif ( $input_w > 0 ) {
228
		$w = $input_w;
229
		$h = ceil( ( $w / 16 ) * 9 );
230
	} else {
231
		if ( isset( $qargs['fmt'] ) && intval( $qargs['fmt'] ) ) {
232
			$w = ( ! empty( $content_width ) ? min( $content_width, 480 ) : 480 );
233
		} else {
234
			$w = ( ! empty( $content_width ) ? min( $content_width, $default_width ) : $default_width );
235
			$h = $input_h;
236
		}
237
	}
238
239
	/**
240
	 * Filter the YouTube player width.