Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack.php 2 locations

@@ 515-517 (lines=3) @@
512
513
	function jetpack_admin_ajax_callback() {
514
		// Check for nonce
515
		if ( ! isset( $_REQUEST['adminNonce'] ) || ! wp_verify_nonce( $_REQUEST['adminNonce'], 'jetpack-admin-nonce' ) || ! current_user_can( 'jetpack_manage_modules' ) ) {
516
			wp_die( 'permissions check failed' );
517
		}
518
519
		if ( isset( $_REQUEST['toggleModule'] ) && 'nux-toggle-module' == $_REQUEST['toggleModule'] ) {
520
			$slug = $_REQUEST['thisModuleSlug'];
@@ 548-550 (lines=3) @@
545
	 */
546
	function jetpack_admin_ajax_refresh_data() {
547
		// Check for nonce
548
		if ( ! isset( $_REQUEST['adminNonce'] ) || ! wp_verify_nonce( $_REQUEST['adminNonce'], 'jetpack-admin-nonce' ) ) {
549
			wp_die( 'permissions check failed' );
550
		}
551
552
		if ( isset( $_REQUEST['refreshData'] ) && 'refresh' == $_REQUEST['refreshData'] ) {
553
			$modules = Jetpack_Admin::init()->get_modules();