Code Duplication    Length = 3-3 lines in 2 locations

projects/plugins/beta/class-jetpackbetaclicommand.php 2 locations

@@ 70-72 (lines=3) @@
67
				return WP_CLI::error( __( 'Specify subcommand. "activate" and "list" subcommands are supported', 'jetpack-beta' ) );
68
			}
69
70
			if ( 'activate' !== $args[0] && 'list' !== $args[0] ) {
71
				return WP_CLI::error( __( 'Only "activate" and "list" subcommands are supported', 'jetpack-beta' ) );
72
			}
73
74
			if ( 'activate' === $args[0] && empty( $args[1] ) ) {
75
				return WP_CLI::error( __( 'Specify branch name. Try `wp jetpack-beta branch list` for list of available branches', 'jetpack-beta' ) );
@@ 74-76 (lines=3) @@
71
				return WP_CLI::error( __( 'Only "activate" and "list" subcommands are supported', 'jetpack-beta' ) );
72
			}
73
74
			if ( 'activate' === $args[0] && empty( $args[1] ) ) {
75
				return WP_CLI::error( __( 'Specify branch name. Try `wp jetpack-beta branch list` for list of available branches', 'jetpack-beta' ) );
76
			}
77
		}
78
79
		/**