Code Duplication    Length = 8-9 lines in 2 locations

class.jetpack-cli.php 2 locations

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