Code Duplication    Length = 3-3 lines in 2 locations

modules/shortcodes/vimeo.php 2 locations

@@ 108-110 (lines=3) @@
105
	// $args['autoplay'] is parsed from the embedded url.
106
	// $autoplay is parsed from shortcode arguments.
107
	// in_array( 'autoplay', $atts ) catches the argument passed without a value.
108
	if ( ! empty( $args['autoplay'] ) || ! empty( $autoplay ) || in_array( 'autoplay', $atts ) ) {
109
		$url = add_query_arg( 'autoplay', 1, $url );
110
	}
111
112
	if ( ! empty( $args['loop'] ) || ! empty( $loop ) || in_array( 'loop', $atts ) ) {
113
		$url = add_query_arg( 'loop', 1, $url );
@@ 112-114 (lines=3) @@
109
		$url = add_query_arg( 'autoplay', 1, $url );
110
	}
111
112
	if ( ! empty( $args['loop'] ) || ! empty( $loop ) || in_array( 'loop', $atts ) ) {
113
		$url = add_query_arg( 'loop', 1, $url );
114
	}
115
116
	$html = sprintf( '<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>', esc_url( $url ), $width, $height );
117