Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack.php 2 locations

@@ 562-564 (lines=3) @@
559
560
	function jetpack_admin_ajax_callback() {
561
		// Check for nonce
562
		if ( ! isset( $_REQUEST['adminNonce'] ) || ! wp_verify_nonce( $_REQUEST['adminNonce'], 'jetpack-admin-nonce' ) || ! current_user_can( 'jetpack_manage_modules' ) ) {
563
			wp_die( 'permissions check failed' );
564
		}
565
566
		if ( isset( $_REQUEST['toggleModule'] ) && 'nux-toggle-module' == $_REQUEST['toggleModule'] ) {
567
			$slug = $_REQUEST['thisModuleSlug'];
@@ 595-597 (lines=3) @@
592
	 */
593
	function jetpack_admin_ajax_refresh_data() {
594
		// Check for nonce
595
		if ( ! isset( $_REQUEST['adminNonce'] ) || ! wp_verify_nonce( $_REQUEST['adminNonce'], 'jetpack-admin-nonce' ) ) {
596
			wp_die( 'permissions check failed' );
597
		}
598
599
		if ( isset( $_REQUEST['refreshData'] ) && 'refresh' == $_REQUEST['refreshData'] ) {
600
			$modules = Jetpack_Admin::init()->get_modules();