Code Duplication    Length = 4-4 lines in 3 locations

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

@@ 937-940 (lines=4) @@
934
					break;
935
936
				case 'dismiss_dash_app_card':
937
				case 'dismiss_empty_stats_card':
938
					// If option value was the same, consider it done.
939
					$updated = get_option( $option ) != $value ? update_option( $option, (bool) $value ) : true;
940
					break;
941
942
				case 'onboarding':
943
					jetpack_require_lib( 'widgets' );
@@ 954-957 (lines=4) @@
951
					}
952
					break;
953
954
				case 'show_welcome_for_new_plan':
955
					// If option value was the same, consider it done.
956
					$updated = get_option( $option ) !== $value ? update_option( $option, (bool) $value ) : true;
957
					break;
958
959
				default:
960
					// If option value was the same, consider it done.
@@ 959-962 (lines=4) @@
956
					$updated = get_option( $option ) !== $value ? update_option( $option, (bool) $value ) : true;
957
					break;
958
959
				default:
960
					// If option value was the same, consider it done.
961
					$updated = get_option( $option ) != $value ? update_option( $option, $value ) : true;
962
					break;
963
			}
964
965
			// The option was not updated.