Code Duplication    Length = 6-8 lines in 2 locations

modules/shortcodes/youtube.php 2 locations

@@ 407-412 (lines=6) @@
404
		$w = $input_w;
405
		$h = $input_h;
406
	} elseif ( 0 === $input_w && 0 === $input_h ) {
407
		if ( isset( $query_args['fmt'] ) && intval( $query_args['fmt'] ) ) {
408
			$w = ( ! empty( $content_width ) ? min( $content_width, 480 ) : 480 );
409
		} else {
410
			$w = ( ! empty( $content_width ) ? min( $content_width, $default_width ) : $default_width );
411
			$h = ceil( ( $w / 16 ) * 9 );
412
		}
413
	} elseif ( $input_w > 0 ) {
414
		$w = $input_w;
415
		$h = ceil( ( $w / 16 ) * 9 );
@@ 416-423 (lines=8) @@
413
	} elseif ( $input_w > 0 ) {
414
		$w = $input_w;
415
		$h = ceil( ( $w / 16 ) * 9 );
416
	} else {
417
		if ( isset( $query_args['fmt'] ) && intval( $query_args['fmt'] ) ) {
418
			$w = ( ! empty( $content_width ) ? min( $content_width, 480 ) : 480 );
419
		} else {
420
			$w = ( ! empty( $content_width ) ? min( $content_width, $default_width ) : $default_width );
421
			$h = $input_h;
422
		}
423
	}
424
425
	/**
426
	 * Filter the YouTube player width.