Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack.php 2 locations

@@ 713-715 (lines=3) @@
710
711
	function jetpack_admin_ajax_callback() {
712
		// Check for nonce
713
		if ( ! isset( $_REQUEST['adminNonce'] ) || ! wp_verify_nonce( $_REQUEST['adminNonce'], 'jetpack-admin-nonce' ) || ! current_user_can( 'jetpack_manage_modules' ) ) {
714
			wp_die( 'permissions check failed' );
715
		}
716
717
		if ( isset( $_REQUEST['toggleModule'] ) && 'nux-toggle-module' == $_REQUEST['toggleModule'] ) {
718
			$slug = $_REQUEST['thisModuleSlug'];
@@ 746-748 (lines=3) @@
743
	 */
744
	function jetpack_admin_ajax_refresh_data() {
745
		// Check for nonce
746
		if ( ! isset( $_REQUEST['adminNonce'] ) || ! wp_verify_nonce( $_REQUEST['adminNonce'], 'jetpack-admin-nonce' ) ) {
747
			wp_die( 'permissions check failed' );
748
		}
749
750
		if ( isset( $_REQUEST['refreshData'] ) && 'refresh' == $_REQUEST['refreshData'] ) {
751
			$modules = Jetpack_Admin::init()->get_modules();