Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack.php 2 locations

@@ 654-656 (lines=3) @@
651
652
	function jetpack_admin_ajax_callback() {
653
		// Check for nonce
654
		if ( ! isset( $_REQUEST['adminNonce'] ) || ! wp_verify_nonce( $_REQUEST['adminNonce'], 'jetpack-admin-nonce' ) || ! current_user_can( 'jetpack_manage_modules' ) ) {
655
			wp_die( 'permissions check failed' );
656
		}
657
658
		if ( isset( $_REQUEST['toggleModule'] ) && 'nux-toggle-module' == $_REQUEST['toggleModule'] ) {
659
			$slug = $_REQUEST['thisModuleSlug'];
@@ 687-689 (lines=3) @@
684
	 */
685
	function jetpack_admin_ajax_refresh_data() {
686
		// Check for nonce
687
		if ( ! isset( $_REQUEST['adminNonce'] ) || ! wp_verify_nonce( $_REQUEST['adminNonce'], 'jetpack-admin-nonce' ) ) {
688
			wp_die( 'permissions check failed' );
689
		}
690
691
		if ( isset( $_REQUEST['refreshData'] ) && 'refresh' == $_REQUEST['refreshData'] ) {
692
			$modules = Jetpack_Admin::init()->get_modules();