Code Duplication    Length = 10-13 lines in 2 locations

modules/shortcodes/vimeo.php 2 locations

@@ 86-98 (lines=13) @@
83
	/*
84
	 * Support w and h argument as fallbacks in old shortcode format.
85
	 */
86
	if (
87
		$default_width === $width
88
		&& ! empty( $old_attr['w'] )
89
	) {
90
		$width = absint( $old_attr['w'] );
91
92
		if (
93
			$default_width === $width
94
			&& empty( $old_attr['h'] )
95
		) {
96
			$height = round( $width * $aspect_ratio );
97
		}
98
	}
99
100
	if (
101
		$default_height === $height
@@ 100-109 (lines=10) @@
97
		}
98
	}
99
100
	if (
101
		$default_height === $height
102
		&& ! empty( $old_attr['h'] )
103
	) {
104
		$height = absint( $old_attr['h'] );
105
106
		if ( empty( $old_attr['w'] ) ) {
107
			$width = round( $height * $aspect_ratio );
108
		}
109
	}
110
111
	/*
112
	 * If we have a content width defined, let it be the new default.