Code Duplication    Length = 7-7 lines in 2 locations

_inc/lib/class.core-rest-api-endpoints.php 2 locations

@@ 1170-1176 (lines=7) @@
1167
1168
				case 'google':
1169
				case 'bing':
1170
				case 'pinterest':
1171
					$grouped_options = $grouped_options_current = (array) get_option( 'verification_services_codes' );
1172
					$grouped_options[ $option ] = $value;
1173
1174
					// If option value was the same, consider it done.
1175
					$updated = $grouped_options_current != $grouped_options ? update_option( 'verification_services_codes', $grouped_options ) : true;
1176
					break;
1177
1178
				case 'sharing_services':
1179
					$sharer = new Sharing_Service();
@@ 1271-1277 (lines=7) @@
1268
				case 'blog_id':
1269
				case 'do_not_track':
1270
				case 'hide_smile':
1271
				case 'version':
1272
					$grouped_options = $grouped_options_current = (array) get_option( 'stats_options' );
1273
					$grouped_options[ $option ] = $value;
1274
1275
					// If option value was the same, consider it done.
1276
					$updated = $grouped_options_current != $grouped_options ? update_option( 'stats_options', $grouped_options ) : true;
1277
					break;
1278
1279
				case 'wp_mobile_featured_images':
1280
				case 'wp_mobile_excerpt':