Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 754-759 (lines=6) @@
751
			self::replace_active_plugin( 'jetpack-pressable-beta/jetpack.php' );
752
		}
753
754
		if ( 'stable' === $section &&
755
		file_exists( WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . JETPACK_PLUGIN_FILE ) ) {
756
			self::replace_active_plugin( JETPACK_DEV_PLUGIN_FILE, JETPACK_PLUGIN_FILE, true );
757
			self::update_option( $branch, $section );
758
			return;
759
		}
760
761
		if ( self::get_branch_and_section_dev() === array( $branch, $section )
762
		&& file_exists( WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . JETPACK_DEV_PLUGIN_FILE ) ) {
@@ 761-766 (lines=6) @@
758
			return;
759
		}
760
761
		if ( self::get_branch_and_section_dev() === array( $branch, $section )
762
		&& file_exists( WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . JETPACK_DEV_PLUGIN_FILE ) ) {
763
			self::replace_active_plugin( JETPACK_PLUGIN_FILE, JETPACK_DEV_PLUGIN_FILE, true );
764
			self::update_option( $branch, $section );
765
			return;
766
		}
767
768
		self::proceed_to_install_and_activate(
769
			self::get_install_url( $branch, $section ),