Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 581-587 (lines=7) @@
578
579
				case 'google':
580
				case 'bing':
581
				case 'pinterest':
582
					$grouped_options          = $grouped_options_current = (array) get_option( 'verification_services_codes' );
583
					$grouped_options[$option] = $value;
584
585
					// If option value was the same, consider it done.
586
					$updated = $grouped_options_current != $grouped_options ? update_option( 'verification_services_codes', $grouped_options ) : true;
587
					break;
588
589
				case 'sharing_services':
590
					$sharer = new Sharing_Service();
@@ 682-688 (lines=7) @@
679
				case 'blog_id':
680
				case 'do_not_track':
681
				case 'hide_smile':
682
				case 'version':
683
					$grouped_options          = $grouped_options_current = (array) get_option( 'stats_options' );
684
					$grouped_options[$option] = $value;
685
686
					// If option value was the same, consider it done.
687
					$updated = $grouped_options_current != $grouped_options ? update_option( 'stats_options', $grouped_options ) : true;
688
					break;
689
690
				case Jetpack_Core_Json_Api_Endpoints::holiday_snow_option_name():
691
					$updated = get_option( $option ) != $value ? update_option( $option, (bool) $value ? 'letitsnow' : '' ) : true;