Code Duplication    Length = 3-3 lines in 2 locations

projects/plugins/jetpack/modules/shortcodes/dailymotion.php 1 location

@@ 197-199 (lines=3) @@
194
	if ( isset( $atts['ui-start-screen-info'] ) && '0' === $atts['ui-start-screen-info'] ) {
195
		$player_params['ui-start-screen-info'] = '0';
196
	}
197
	if ( isset( $atts['ui-theme'] ) && in_array( strtolower( $atts['ui-theme'] ), array( 'dark', 'light' ), true ) ) {
198
		$player_params['ui-theme'] = esc_attr( $atts['ui-theme'] );
199
	}
200
201
	// Add those parameters to the Video URL.
202
	$video_url = add_query_arg(

projects/plugins/jetpack/modules/shortcodes/youtube.php 1 location

@@ 271-273 (lines=3) @@
268
	}
269
270
	// The theme parameter is obsolete per https://developers.google.com/youtube/player_parameters#august-19,-2015.
271
	if ( isset( $args['theme'] ) && in_array( strtolower( $args['theme'] ), array( 'dark', 'light' ), true ) ) {
272
		$params['theme'] = $args['theme'];
273
	}
274
275
	if ( isset( $args['list'] ) ) {
276
		$params['listType'] = 'playlist';