Code Duplication    Length = 4-4 lines in 3 locations

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

@@ 861-864 (lines=4) @@
858
					break;
859
860
				case 'dismiss_dash_app_card':
861
				case 'dismiss_empty_stats_card':
862
					// If option value was the same, consider it done.
863
					$updated = get_option( $option ) != $value ? update_option( $option, (bool) $value ) : true;
864
					break;
865
866
				case 'onboarding':
867
					// Break apart and set Jetpack onboarding options.
@@ 879-882 (lines=4) @@
876
					}
877
					break;
878
879
				case 'show_welcome_for_new_plan':
880
					// If option value was the same, consider it done.
881
					$updated = get_option( $option ) !== $value ? update_option( $option, (bool) $value ) : true;
882
					break;
883
884
				default:
885
					// If option value was the same, consider it done.
@@ 884-887 (lines=4) @@
881
					$updated = get_option( $option ) !== $value ? update_option( $option, (bool) $value ) : true;
882
					break;
883
884
				default:
885
					// If option value was the same, consider it done.
886
					$updated = get_option( $option ) != $value ? update_option( $option, $value ) : true;
887
					break;
888
			}
889
890
			// The option was not updated.