Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack.php 2 locations

@@ 532-534 (lines=3) @@
529
530
	function jetpack_admin_ajax_callback() {
531
		// Check for nonce
532
		if ( ! isset( $_REQUEST['adminNonce'] ) || ! wp_verify_nonce( $_REQUEST['adminNonce'], 'jetpack-admin-nonce' ) || ! current_user_can( 'jetpack_manage_modules' ) ) {
533
			wp_die( 'permissions check failed' );
534
		}
535
536
		if ( isset( $_REQUEST['toggleModule'] ) && 'nux-toggle-module' == $_REQUEST['toggleModule'] ) {
537
			$slug = $_REQUEST['thisModuleSlug'];
@@ 565-567 (lines=3) @@
562
	 */
563
	function jetpack_admin_ajax_refresh_data() {
564
		// Check for nonce
565
		if ( ! isset( $_REQUEST['adminNonce'] ) || ! wp_verify_nonce( $_REQUEST['adminNonce'], 'jetpack-admin-nonce' ) ) {
566
			wp_die( 'permissions check failed' );
567
		}
568
569
		if ( isset( $_REQUEST['refreshData'] ) && 'refresh' == $_REQUEST['refreshData'] ) {
570
			$modules = Jetpack_Admin::init()->get_modules();