Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 1146-1152 (lines=7) @@
1143
1144
				case 'google':
1145
				case 'bing':
1146
				case 'pinterest':
1147
					$grouped_options = $grouped_options_current = get_option( 'verification_services_codes' );
1148
					$grouped_options[ $option ] = $value;
1149
1150
					// If option value was the same, consider it done.
1151
					$updated = $grouped_options_current != $grouped_options ? update_option( 'verification_services_codes', $grouped_options ) : true;
1152
					break;
1153
1154
				case 'sharing_services':
1155
					$sharer = new Sharing_Service();
@@ 1247-1253 (lines=7) @@
1244
				case 'blog_id':
1245
				case 'do_not_track':
1246
				case 'hide_smile':
1247
				case 'version':
1248
					$grouped_options = $grouped_options_current = get_option( 'stats_options' );
1249
					$grouped_options[ $option ] = $value;
1250
1251
					// If option value was the same, consider it done.
1252
					$updated = $grouped_options_current != $grouped_options ? update_option( 'stats_options', $grouped_options ) : true;
1253
					break;
1254
1255
				case 'wp_mobile_featured_images':
1256
				case 'wp_mobile_excerpt':