Code Duplication    Length = 8-9 lines in 2 locations

class.jetpack-cli.php 2 locations

@@ 291-299 (lines=9) @@
288
					esc_url( get_site_url() )
289
				) );
290
				sleep(1); // Take a breath
291
				foreach ( $options_to_reset['jp_options'] as $option_to_reset ) {
292
					if ( ! $is_dry_run ) {
293
						Jetpack_Options::delete_option( $option_to_reset );
294
						usleep( 100000 );
295
					}
296
297
					/* translators: This is the result of an action. The option named %s was reset */
298
					WP_CLI::success( sprintf( __( '%s option reset', 'jetpack' ), $option_to_reset ) );
299
				}
300
301
				// Reset the WP options
302
				WP_CLI::line( __( "Resetting the jetpack options stored in wp_options...\n", "jetpack" ) );
@@ 304-311 (lines=8) @@
301
				// Reset the WP options
302
				WP_CLI::line( __( "Resetting the jetpack options stored in wp_options...\n", "jetpack" ) );
303
				usleep( 500000 ); // Take a breath
304
				foreach ( $options_to_reset['wp_options'] as $option_to_reset ) {
305
					if ( ! $is_dry_run ) {
306
						delete_option( $option_to_reset );
307
						usleep( 100000 );
308
					}
309
					/* translators: This is the result of an action. The option named %s was reset */
310
					WP_CLI::success( sprintf( __( '%s option reset', 'jetpack' ), $option_to_reset ) );
311
				}
312
313
				// Reset to default modules
314
				WP_CLI::line( __( "Resetting default modules...\n", "jetpack" ) );