Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 890-895 (lines=6) @@
887
888
		self::update_autoload_dev_constant( $section );
889
890
		if ( 'stable' === $section &&
891
		file_exists( WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . JETPACK_PLUGIN_FILE ) ) {
892
			self::replace_active_plugin( JETPACK_DEV_PLUGIN_FILE, JETPACK_PLUGIN_FILE, true );
893
			self::update_option( $branch, $section );
894
			return;
895
		}
896
897
		if ( self::get_branch_and_section_dev() === array( $branch, $section )
898
		&& file_exists( WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . JETPACK_DEV_PLUGIN_FILE ) ) {
@@ 897-902 (lines=6) @@
894
			return;
895
		}
896
897
		if ( self::get_branch_and_section_dev() === array( $branch, $section )
898
		&& file_exists( WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . JETPACK_DEV_PLUGIN_FILE ) ) {
899
			self::replace_active_plugin( JETPACK_PLUGIN_FILE, JETPACK_DEV_PLUGIN_FILE, true );
900
			self::update_option( $branch, $section );
901
			return;
902
		}
903
904
		self::proceed_to_install_and_activate(
905
			self::get_install_url( $branch, $section ),