Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack.php 2 locations

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