Code Duplication    Length = 6-7 lines in 2 locations

class.jetpack.php 1 location

@@ 7247-7253 (lines=7) @@
7244
			? array( 'sso' )
7245
			: array();
7246
7247
		if ( $active_modules = Jetpack_Options::get_option( 'active_modules' ) ) {
7248
			Jetpack::delete_active_modules();
7249
7250
			Jetpack::activate_default_modules( 999, 1, array_merge( $active_modules, $other_modules ), $redirect_on_activation_error, false );
7251
		} else {
7252
			Jetpack::activate_default_modules( false, false, $other_modules, $redirect_on_activation_error, false );
7253
		}
7254
7255
		// Since this is a fresh connection, be sure to clear out IDC options
7256
		Jetpack_IDC::clear_all_idc_options();

_inc/class.jetpack-provision.php 1 location

@@ 242-247 (lines=6) @@
239
			? array( 'sso' )
240
			: array();
241
242
		if ( $active_modules = Jetpack_Options::get_option( 'active_modules' ) ) {
243
			Jetpack::delete_active_modules();
244
			Jetpack::activate_default_modules( 999, 1, array_merge( $active_modules, $other_modules ), false );
245
		} else {
246
			Jetpack::activate_default_modules( false, false, $other_modules, false );
247
		}
248
	}
249
250
	private static function verify_token( $access_token ) {