Code Duplication    Length = 8-9 lines in 2 locations

class.jetpack-cli.php 2 locations

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