Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack.php 2 locations

@@ 677-679 (lines=3) @@
674
675
	function jetpack_admin_ajax_callback() {
676
		// Check for nonce
677
		if ( ! isset( $_REQUEST['adminNonce'] ) || ! wp_verify_nonce( $_REQUEST['adminNonce'], 'jetpack-admin-nonce' ) || ! current_user_can( 'jetpack_manage_modules' ) ) {
678
			wp_die( 'permissions check failed' );
679
		}
680
681
		if ( isset( $_REQUEST['toggleModule'] ) && 'nux-toggle-module' == $_REQUEST['toggleModule'] ) {
682
			$slug = $_REQUEST['thisModuleSlug'];
@@ 710-712 (lines=3) @@
707
	 */
708
	function jetpack_admin_ajax_refresh_data() {
709
		// Check for nonce
710
		if ( ! isset( $_REQUEST['adminNonce'] ) || ! wp_verify_nonce( $_REQUEST['adminNonce'], 'jetpack-admin-nonce' ) ) {
711
			wp_die( 'permissions check failed' );
712
		}
713
714
		if ( isset( $_REQUEST['refreshData'] ) && 'refresh' == $_REQUEST['refreshData'] ) {
715
			$modules = Jetpack_Admin::init()->get_modules();