Code Duplication    Length = 8-9 lines in 2 locations

projects/plugins/jetpack/class.jetpack-cli.php 2 locations

@@ 315-323 (lines=9) @@
312
					)
313
				);
314
				sleep( 1 ); // Take a breath
315
				foreach ( $options_to_reset['jp_options'] as $option_to_reset ) {
316
					if ( ! $is_dry_run ) {
317
						Jetpack_Options::delete_option( $option_to_reset );
318
						usleep( 100000 );
319
					}
320
321
					/* translators: This is the result of an action. The option named %s was reset */
322
					WP_CLI::success( sprintf( __( '%s option reset', 'jetpack' ), $option_to_reset ) );
323
				}
324
325
				// Reset the WP options
326
				WP_CLI::line( __( "Resetting the jetpack options stored in wp_options...\n", 'jetpack' ) );
@@ 328-335 (lines=8) @@
325
				// Reset the WP options
326
				WP_CLI::line( __( "Resetting the jetpack options stored in wp_options...\n", 'jetpack' ) );
327
				usleep( 500000 ); // Take a breath
328
				foreach ( $options_to_reset['wp_options'] as $option_to_reset ) {
329
					if ( ! $is_dry_run ) {
330
						delete_option( $option_to_reset );
331
						usleep( 100000 );
332
					}
333
					/* translators: This is the result of an action. The option named %s was reset */
334
					WP_CLI::success( sprintf( __( '%s option reset', 'jetpack' ), $option_to_reset ) );
335
				}
336
337
				// Reset to default modules
338
				WP_CLI::line( __( "Resetting default modules...\n", 'jetpack' ) );