Code Duplication    Length = 3-3 lines in 2 locations

modules/contact-form/grunion-contact-form.php 1 location

@@ 2187-2189 (lines=3) @@
2184
			$attributes['required'] = false;
2185
2186
		// parse out comma-separated options list (for selects, radios, and checkbox-multiples)
2187
		if ( !empty( $attributes['options'] ) && is_string( $attributes['options'] ) ) {
2188
			$attributes['options'] = array_map( 'trim', explode( ',', $attributes['options'] ) );
2189
		}
2190
2191
		if ( $form ) {
2192
			// make a unique field ID based on the label, with an incrementing number if needed to avoid clashes

json-endpoints/jetpack/class.jetpack-json-api-sync-endpoint.php 1 location

@@ 28-30 (lines=3) @@
25
			$sync_module->clear_status();
26
		}
27
28
		if ( isset( $args['modules'] ) && !empty( $args['modules'] ) ) {
29
			$modules = array_map('trim', explode( ',', $args['modules'] ) );
30
		}
31
32
		Jetpack_Sync_Actions::schedule_full_sync( $modules );
33
		spawn_cron();