Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack.php 2 locations

@@ 473-475 (lines=3) @@
470
471
	function jetpack_admin_ajax_callback() {
472
		// Check for nonce
473
		if ( ! isset( $_REQUEST['adminNonce'] ) || ! wp_verify_nonce( $_REQUEST['adminNonce'], 'jetpack-admin-nonce' ) || ! current_user_can( 'jetpack_manage_modules' ) ) {
474
			wp_die( 'permissions check failed' );
475
		}
476
477
		if ( isset( $_REQUEST['toggleModule'] ) && 'nux-toggle-module' == $_REQUEST['toggleModule'] ) {
478
			$slug = $_REQUEST['thisModuleSlug'];
@@ 506-508 (lines=3) @@
503
	 */
504
	function jetpack_admin_ajax_refresh_data() {
505
		// Check for nonce
506
		if ( ! isset( $_REQUEST['adminNonce'] ) || ! wp_verify_nonce( $_REQUEST['adminNonce'], 'jetpack-admin-nonce' ) ) {
507
			wp_die( 'permissions check failed' );
508
		}
509
510
		if ( isset( $_REQUEST['refreshData'] ) && 'refresh' == $_REQUEST['refreshData'] ) {
511
			$modules = Jetpack_Admin::init()->get_modules();