Code Duplication    Length = 7-7 lines in 2 locations

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

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