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
					jetpack_require_lib( 'widgets' );
@@ 891-894 (lines=4) @@
888
					}
889
					break;
890
891
				case 'show_welcome_for_new_plan':
892
					// If option value was the same, consider it done.
893
					$updated = get_option( $option ) !== $value ? update_option( $option, (bool) $value ) : true;
894
					break;
895
896
				default:
897
					// If option value was the same, consider it done.
@@ 896-899 (lines=4) @@
893
					$updated = get_option( $option ) !== $value ? update_option( $option, (bool) $value ) : true;
894
					break;
895
896
				default:
897
					// If option value was the same, consider it done.
898
					$updated = get_option( $option ) != $value ? update_option( $option, $value ) : true;
899
					break;
900
			}
901
902
			// The option was not updated.