Code Duplication    Length = 7-7 lines in 2 locations

modules/shortcodes/vimeo.php 2 locations

@@ 126-132 (lines=7) @@
123
	$url = esc_url( 'https://player.vimeo.com/video/' . $attr['id'] );
124
125
	// Handle autoplay and loop arguments.
126
	if (
127
		isset( $args['autoplay'] ) && '1' === $args['autoplay'] // Parsed from the embedded URL.
128
		|| $attr['autoplay']                                    // Parsed from shortcode arguments.
129
		|| in_array( 'autoplay', $atts )                        // Catch the argument passed without a value.
130
	) {
131
		$url = add_query_arg( 'autoplay', 1, $url );
132
	}
133
134
	if (
135
		isset( $args['loop'] ) && '1' === $args['loop'] // Parsed from the embedded URL.
@@ 134-140 (lines=7) @@
131
		$url = add_query_arg( 'autoplay', 1, $url );
132
	}
133
134
	if (
135
		isset( $args['loop'] ) && '1' === $args['loop'] // Parsed from the embedded URL.
136
		|| $attr['loop']                                // Parsed from shortcode arguments.
137
		|| in_array( 'loop', $atts )                    // Catch the argument passed without a value.
138
	) {
139
		$url = add_query_arg( 'loop', 1, $url );
140
	}
141
142
	$html = sprintf(
143
		'<div class="embed-vimeo" style="text-align: center;"><iframe src="%1$s" width="%2$u" height="%3$u" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div>',