Code Duplication    Length = 3-5 lines in 2 locations

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

@@ 121-125 (lines=5) @@
118
119
		$args = $this->query_args();
120
121
		if ( isset( $args['columns'] ) ) {
122
			$columns = array_map('trim', explode( ',', $args['columns'] ) );
123
		} else {
124
			$columns = null; // go with defaults
125
		}
126
127
		require_once dirname(__FILE__) . '/../../sync/class.jetpack-sync-wp-replicastore.php';
128

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

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