Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack.php 2 locations

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