Code Duplication    Length = 4-4 lines in 2 locations

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

@@ 895-898 (lines=4) @@
892
893
				if ( ! empty( $assoc_args['queue'] ) ) {
894
					switch ( $assoc_args['queue'] ) {
895
						case 'regular':
896
							$listener->get_sync_queue()->reset();
897
							/* translators: %s is the site URL */
898
							WP_CLI::log( sprintf( __( 'Reset Regular Sync Queue on %s', 'jetpack' ), get_site_url() ) );
899
							break;
900
						case 'full':
901
							$listener->get_full_sync_queue()->reset();
@@ 900-903 (lines=4) @@
897
							/* translators: %s is the site URL */
898
							WP_CLI::log( sprintf( __( 'Reset Regular Sync Queue on %s', 'jetpack' ), get_site_url() ) );
899
							break;
900
						case 'full':
901
							$listener->get_full_sync_queue()->reset();
902
							/* translators: %s is the site URL */
903
							WP_CLI::log( sprintf( __( 'Reset Full Sync Queue on %s', 'jetpack' ), get_site_url() ) );
904
							break;
905
						default:
906
							WP_CLI::error( __( 'Please specify what type of queue do you want to reset: `full` or `regular`.', 'jetpack' ) );