Code Duplication    Length = 3-5 lines in 2 locations

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

@@ 2218-2220 (lines=3) @@
2215
			$attributes['required'] = false;
2216
2217
		// parse out comma-separated options list (for selects, radios, and checkbox-multiples)
2218
		if ( !empty( $attributes['options'] ) && is_string( $attributes['options'] ) ) {
2219
			$attributes['options'] = array_map( 'trim', explode( ',', $attributes['options'] ) );
2220
		}
2221
2222
		if ( $form ) {
2223
			// 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

@@ 144-148 (lines=5) @@
141
142
		$args = $this->query_args();
143
144
		if ( isset( $args['columns'] ) ) {
145
			$columns = array_map( 'trim', explode( ',', $args['columns'] ) );
146
		} else {
147
			$columns = null; // go with defaults
148
		}
149
150
		require_once JETPACK__PLUGIN_DIR . 'sync/class.jetpack-sync-wp-replicastore.php';
151