Code Duplication    Length = 8-8 lines in 2 locations

class.jetpack.php 2 locations

@@ 2979-2986 (lines=8) @@
2976
		Jetpack::catch_errors( false );
2977
2978
		// A flag for Jump Start so it's not shown again. Only set if it hasn't been yet.
2979
		if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) {
2980
			Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' );
2981
2982
			//Jump start is being dismissed send data to MC Stats
2983
			$jetpack->stat( 'jumpstart', 'manual,'.$module );
2984
2985
			$jetpack->do_stats( 'server_side' );
2986
		}
2987
2988
		if ( $redirect ) {
2989
			wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) );
@@ 3017-3024 (lines=8) @@
3014
		$new    = array_filter( array_diff( $active, (array) $module ) );
3015
3016
		// A flag for Jump Start so it's not shown again.
3017
		if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) {
3018
			Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' );
3019
3020
			//Jump start is being dismissed send data to MC Stats
3021
			$jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module );
3022
3023
			$jetpack->do_stats( 'server_side' );
3024
		}
3025
3026
		return self::update_active_modules( $new );
3027
	}