Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 885-890 (lines=6) @@
882
			self::replace_active_plugin( 'jetpack-pressable-beta/jetpack.php' );
883
		}
884
885
		if ( 'stable' === $section &&
886
		file_exists( WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . JETPACK_PLUGIN_FILE ) ) {
887
			self::replace_active_plugin( JETPACK_DEV_PLUGIN_FILE, JETPACK_PLUGIN_FILE, true );
888
			self::update_option( $branch, $section );
889
			return;
890
		}
891
892
		if ( self::get_branch_and_section_dev() === array( $branch, $section )
893
		&& file_exists( WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . JETPACK_DEV_PLUGIN_FILE ) ) {
@@ 892-897 (lines=6) @@
889
			return;
890
		}
891
892
		if ( self::get_branch_and_section_dev() === array( $branch, $section )
893
		&& file_exists( WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . JETPACK_DEV_PLUGIN_FILE ) ) {
894
			self::replace_active_plugin( JETPACK_PLUGIN_FILE, JETPACK_DEV_PLUGIN_FILE, true );
895
			self::update_option( $branch, $section );
896
			return;
897
		}
898
899
		self::proceed_to_install_and_activate(
900
			self::get_install_url( $branch, $section ),