Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 68-73 (lines=6) @@
65
			return;
66
		}
67
		// Install and activate Jetpack Version
68
		if ( wp_verify_nonce( $_GET['_nonce'], 'activate_branch' ) && isset( $_GET['activate-branch'] ) && isset( $_GET['section'] ) ) {
69
			$branch  = esc_html( $_GET['activate-branch'] );
70
			$section = esc_html( $_GET['section'] );
71
72
			Jetpack_Beta::install_and_activate( $branch, $section );
73
		}
74
75
		// Update to the latest version
76
		if ( wp_verify_nonce( $_GET['_nonce'], 'update_branch' ) && isset( $_GET['update-branch'] ) && isset( $_GET['section'] ) ) {
@@ 76-81 (lines=6) @@
73
		}
74
75
		// Update to the latest version
76
		if ( wp_verify_nonce( $_GET['_nonce'], 'update_branch' ) && isset( $_GET['update-branch'] ) && isset( $_GET['section'] ) ) {
77
			$branch  = esc_html( $_GET['update-branch'] );
78
			$section = esc_html( $_GET['section'] );
79
80
			Jetpack_Beta::update_plugin( $branch, $section );
81
		}
82
83
		// Toggle autoupdates
84
		if ( self::is_toggle_action( 'autoupdates' ) ) {