Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 574-580 (lines=7) @@
571
572
				case 'google':
573
				case 'bing':
574
				case 'pinterest':
575
					$grouped_options          = $grouped_options_current = (array) get_option( 'verification_services_codes' );
576
					$grouped_options[$option] = $value;
577
578
					// If option value was the same, consider it done.
579
					$updated = $grouped_options_current != $grouped_options ? update_option( 'verification_services_codes', $grouped_options ) : true;
580
					break;
581
582
				case 'sharing_services':
583
					$sharer = new Sharing_Service();
@@ 675-681 (lines=7) @@
672
				case 'blog_id':
673
				case 'do_not_track':
674
				case 'hide_smile':
675
				case 'version':
676
					$grouped_options          = $grouped_options_current = (array) get_option( 'stats_options' );
677
					$grouped_options[$option] = $value;
678
679
					// If option value was the same, consider it done.
680
					$updated = $grouped_options_current != $grouped_options ? update_option( 'stats_options', $grouped_options ) : true;
681
					break;
682
683
				case Jetpack_Core_Json_Api_Endpoints::holiday_snow_option_name():
684
					$updated = get_option( $option ) != $value ? update_option( $option, (bool) $value ? 'letitsnow' : '' ) : true;