Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack.php 2 locations

@@ 559-561 (lines=3) @@
556
557
	function jetpack_admin_ajax_callback() {
558
		// Check for nonce
559
		if ( ! isset( $_REQUEST['adminNonce'] ) || ! wp_verify_nonce( $_REQUEST['adminNonce'], 'jetpack-admin-nonce' ) || ! current_user_can( 'jetpack_manage_modules' ) ) {
560
			wp_die( 'permissions check failed' );
561
		}
562
563
		if ( isset( $_REQUEST['toggleModule'] ) && 'nux-toggle-module' == $_REQUEST['toggleModule'] ) {
564
			$slug = $_REQUEST['thisModuleSlug'];
@@ 592-594 (lines=3) @@
589
	 */
590
	function jetpack_admin_ajax_refresh_data() {
591
		// Check for nonce
592
		if ( ! isset( $_REQUEST['adminNonce'] ) || ! wp_verify_nonce( $_REQUEST['adminNonce'], 'jetpack-admin-nonce' ) ) {
593
			wp_die( 'permissions check failed' );
594
		}
595
596
		if ( isset( $_REQUEST['refreshData'] ) && 'refresh' == $_REQUEST['refreshData'] ) {
597
			$modules = Jetpack_Admin::init()->get_modules();