Code Duplication    Length = 7-7 lines in 2 locations

modules/shortcodes/vimeo.php 2 locations

@@ 199-205 (lines=7) @@
196
	$url = esc_url( 'https://player.vimeo.com/video/' . $attr['id'] );
197
198
	// Handle autoplay and loop arguments.
199
	if (
200
		isset( $args['autoplay'] ) && '1' === $args['autoplay'] // Parsed from the embedded URL.
201
		|| $attr['autoplay']                                    // Parsed from shortcode arguments.
202
		|| in_array( 'autoplay', $atts, true )                  // Catch the argument passed without a value.
203
	) {
204
		$url = add_query_arg( 'autoplay', 1, $url );
205
	}
206
207
	if (
208
		isset( $args['loop'] ) && '1' === $args['loop'] // Parsed from the embedded URL.
@@ 207-213 (lines=7) @@
204
		$url = add_query_arg( 'autoplay', 1, $url );
205
	}
206
207
	if (
208
		isset( $args['loop'] ) && '1' === $args['loop'] // Parsed from the embedded URL.
209
		|| $attr['loop']                                // Parsed from shortcode arguments.
210
		|| in_array( 'loop', $atts, true )              // Catch the argument passed without a value.
211
	) {
212
		$url = add_query_arg( 'loop', 1, $url );
213
	}
214
215
	if (
216
		class_exists( 'Jetpack_AMP_Support' )