Code Duplication    Length = 10-13 lines in 2 locations

modules/shortcodes/vimeo.php 2 locations

@@ 61-73 (lines=13) @@
58
	/*
59
	 * Support w and h argument as fallbacks.
60
	 */
61
	if (
62
		$default_width === $width
63
		&& ! empty( $old_attr['w'] )
64
	) {
65
		$width = absint( $old_attr['w'] );
66
67
		if (
68
			$default_width === $width
69
			&& empty( $old_attr['h'] )
70
		) {
71
			$height = round( $width * $aspect_ratio );
72
		}
73
	}
74
75
	if (
76
		$default_height === $height
@@ 75-84 (lines=10) @@
72
		}
73
	}
74
75
	if (
76
		$default_height === $height
77
		&& ! empty( $old_attr['h'] )
78
	) {
79
		$height = absint( $old_attr['h'] );
80
81
		if ( empty( $old_attr['w'] ) ) {
82
			$width = round( $height * $aspect_ratio );
83
		}
84
	}
85
86
	/*
87
	 * If we have a content width defined, let it be the new default.