Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 1153-1159 (lines=7) @@
1150
1151
				case 'google':
1152
				case 'bing':
1153
				case 'pinterest':
1154
					$grouped_options = $grouped_options_current = (array) get_option( 'verification_services_codes' );
1155
					$grouped_options[ $option ] = $value;
1156
1157
					// If option value was the same, consider it done.
1158
					$updated = $grouped_options_current != $grouped_options ? update_option( 'verification_services_codes', $grouped_options ) : true;
1159
					break;
1160
1161
				case 'sharing_services':
1162
					$sharer = new Sharing_Service();
@@ 1254-1260 (lines=7) @@
1251
				case 'blog_id':
1252
				case 'do_not_track':
1253
				case 'hide_smile':
1254
				case 'version':
1255
					$grouped_options = $grouped_options_current = (array) get_option( 'stats_options' );
1256
					$grouped_options[ $option ] = $value;
1257
1258
					// If option value was the same, consider it done.
1259
					$updated = $grouped_options_current != $grouped_options ? update_option( 'stats_options', $grouped_options ) : true;
1260
					break;
1261
1262
				case 'wp_mobile_featured_images':
1263
				case 'wp_mobile_excerpt':