Code Duplication    Length = 4-4 lines in 3 locations

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

@@ 874-877 (lines=4) @@
871
					break;
872
873
				case 'dismiss_dash_app_card':
874
				case 'dismiss_empty_stats_card':
875
					// If option value was the same, consider it done.
876
					$updated = get_option( $option ) != $value ? update_option( $option, (bool) $value ) : true;
877
					break;
878
879
				case 'onboarding':
880
					// Break apart and set Jetpack onboarding options.
@@ 890-893 (lines=4) @@
887
					}
888
					break;
889
890
				case 'show_welcome_for_new_plan':
891
					// If option value was the same, consider it done.
892
					$updated = get_option( $option ) !== $value ? update_option( $option, (bool) $value ) : true;
893
					break;
894
895
				default:
896
					// If option value was the same, consider it done.
@@ 895-898 (lines=4) @@
892
					$updated = get_option( $option ) !== $value ? update_option( $option, (bool) $value ) : true;
893
					break;
894
895
				default:
896
					// If option value was the same, consider it done.
897
					$updated = get_option( $option ) != $value ? update_option( $option, $value ) : true;
898
					break;
899
			}
900
901
			// The option was not updated.