Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack.php 2 locations

@@ 526-528 (lines=3) @@
523
524
	function jetpack_admin_ajax_callback() {
525
		// Check for nonce
526
		if ( ! isset( $_REQUEST['adminNonce'] ) || ! wp_verify_nonce( $_REQUEST['adminNonce'], 'jetpack-admin-nonce' ) || ! current_user_can( 'jetpack_manage_modules' ) ) {
527
			wp_die( 'permissions check failed' );
528
		}
529
530
		if ( isset( $_REQUEST['toggleModule'] ) && 'nux-toggle-module' == $_REQUEST['toggleModule'] ) {
531
			$slug = $_REQUEST['thisModuleSlug'];
@@ 559-561 (lines=3) @@
556
	 */
557
	function jetpack_admin_ajax_refresh_data() {
558
		// Check for nonce
559
		if ( ! isset( $_REQUEST['adminNonce'] ) || ! wp_verify_nonce( $_REQUEST['adminNonce'], 'jetpack-admin-nonce' ) ) {
560
			wp_die( 'permissions check failed' );
561
		}
562
563
		if ( isset( $_REQUEST['refreshData'] ) && 'refresh' == $_REQUEST['refreshData'] ) {
564
			$modules = Jetpack_Admin::init()->get_modules();