Code Duplication    Length = 4-4 lines in 3 locations

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

@@ 912-915 (lines=4) @@
909
					break;
910
911
				case 'dismiss_dash_app_card':
912
				case 'dismiss_empty_stats_card':
913
					// If option value was the same, consider it done.
914
					$updated = get_option( $option ) != $value ? update_option( $option, (bool) $value ) : true;
915
					break;
916
917
				case 'onboarding':
918
					jetpack_require_lib( 'widgets' );
@@ 929-932 (lines=4) @@
926
					}
927
					break;
928
929
				case 'show_welcome_for_new_plan':
930
					// If option value was the same, consider it done.
931
					$updated = get_option( $option ) !== $value ? update_option( $option, (bool) $value ) : true;
932
					break;
933
934
				default:
935
					// If option value was the same, consider it done.
@@ 934-937 (lines=4) @@
931
					$updated = get_option( $option ) !== $value ? update_option( $option, (bool) $value ) : true;
932
					break;
933
934
				default:
935
					// If option value was the same, consider it done.
936
					$updated = get_option( $option ) != $value ? update_option( $option, $value ) : true;
937
					break;
938
			}
939
940
			// The option was not updated.