Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack.php 2 locations

@@ 545-547 (lines=3) @@
542
543
	function jetpack_admin_ajax_callback() {
544
		// Check for nonce
545
		if ( ! isset( $_REQUEST['adminNonce'] ) || ! wp_verify_nonce( $_REQUEST['adminNonce'], 'jetpack-admin-nonce' ) || ! current_user_can( 'jetpack_manage_modules' ) ) {
546
			wp_die( 'permissions check failed' );
547
		}
548
549
		if ( isset( $_REQUEST['toggleModule'] ) && 'nux-toggle-module' == $_REQUEST['toggleModule'] ) {
550
			$slug = $_REQUEST['thisModuleSlug'];
@@ 578-580 (lines=3) @@
575
	 */
576
	function jetpack_admin_ajax_refresh_data() {
577
		// Check for nonce
578
		if ( ! isset( $_REQUEST['adminNonce'] ) || ! wp_verify_nonce( $_REQUEST['adminNonce'], 'jetpack-admin-nonce' ) ) {
579
			wp_die( 'permissions check failed' );
580
		}
581
582
		if ( isset( $_REQUEST['refreshData'] ) && 'refresh' == $_REQUEST['refreshData'] ) {
583
			$modules = Jetpack_Admin::init()->get_modules();