Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack.php 2 locations

@@ 575-577 (lines=3) @@
572
573
	function jetpack_admin_ajax_callback() {
574
		// Check for nonce
575
		if ( ! isset( $_REQUEST['adminNonce'] ) || ! wp_verify_nonce( $_REQUEST['adminNonce'], 'jetpack-admin-nonce' ) || ! current_user_can( 'jetpack_manage_modules' ) ) {
576
			wp_die( 'permissions check failed' );
577
		}
578
579
		if ( isset( $_REQUEST['toggleModule'] ) && 'nux-toggle-module' == $_REQUEST['toggleModule'] ) {
580
			$slug = $_REQUEST['thisModuleSlug'];
@@ 608-610 (lines=3) @@
605
	 */
606
	function jetpack_admin_ajax_refresh_data() {
607
		// Check for nonce
608
		if ( ! isset( $_REQUEST['adminNonce'] ) || ! wp_verify_nonce( $_REQUEST['adminNonce'], 'jetpack-admin-nonce' ) ) {
609
			wp_die( 'permissions check failed' );
610
		}
611
612
		if ( isset( $_REQUEST['refreshData'] ) && 'refresh' == $_REQUEST['refreshData'] ) {
613
			$modules = Jetpack_Admin::init()->get_modules();