Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack.php 2 locations

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