Code Duplication    Length = 3-3 lines in 2 locations

projects/plugins/beta/src/class-clicommand.php 2 locations

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