Code Duplication    Length = 6-6 lines in 2 locations

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

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