Code Duplication    Length = 5-8 lines in 2 locations

class.jetpack-cli.php 2 locations

@@ 330-337 (lines=8) @@
327
				}
328
				WP_CLI::success( __( 'jumpstart option reset', 'jetpack' ) );
329
				break;
330
			case 'modules':
331
				if ( ! $is_dry_run ) {
332
					$default_modules = Jetpack::get_default_modules();
333
					Jetpack::update_active_modules( $default_modules );
334
				}
335
336
				WP_CLI::success( __( 'Modules reset to default.', 'jetpack' ) );
337
				break;
338
			case 'prompt':
339
				WP_CLI::error( __( 'Please specify if you would like to reset your options, modules or sync-checksum', 'jetpack' ) );
340
				break;
@@ 533-537 (lines=5) @@
530
					WP_CLI::error( sprintf( __( '%s could not be activated.', 'jetpack' ), $module['name'] ) );
531
				}
532
				break;
533
			case 'activate_all':
534
				$modules = Jetpack::get_available_modules();
535
				Jetpack::update_active_modules( $modules );
536
				WP_CLI::success( __( 'All modules activated!', 'jetpack' ) );
537
				break;
538
			case 'deactivate':
539
				$module = Jetpack::get_module( $module_slug );
540
				Jetpack::log( 'deactivate', $module_slug );