Code Duplication    Length = 4-4 lines in 3 locations

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

@@ 861-864 (lines=4) @@
858
					break;
859
860
				case 'dismiss_dash_app_card':
861
				case 'dismiss_empty_stats_card':
862
					// If option value was the same, consider it done.
863
					$updated = get_option( $option ) != $value ? update_option( $option, (bool) $value ) : true;
864
					break;
865
866
				case 'onboarding':
867
					jetpack_require_lib( 'widgets' );
@@ 878-881 (lines=4) @@
875
					}
876
					break;
877
878
				case 'show_welcome_for_new_plan':
879
					// If option value was the same, consider it done.
880
					$updated = get_option( $option ) !== $value ? update_option( $option, (bool) $value ) : true;
881
					break;
882
883
				default:
884
					// If option value was the same, consider it done.
@@ 883-886 (lines=4) @@
880
					$updated = get_option( $option ) !== $value ? update_option( $option, (bool) $value ) : true;
881
					break;
882
883
				default:
884
					// If option value was the same, consider it done.
885
					$updated = get_option( $option ) != $value ? update_option( $option, $value ) : true;
886
					break;
887
			}
888
889
			// The option was not updated.