Code Duplication    Length = 4-4 lines in 3 locations

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

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