Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack.php 2 locations

@@ 517-519 (lines=3) @@
514
515
	function jetpack_admin_ajax_callback() {
516
		// Check for nonce
517
		if ( ! isset( $_REQUEST['adminNonce'] ) || ! wp_verify_nonce( $_REQUEST['adminNonce'], 'jetpack-admin-nonce' ) || ! current_user_can( 'jetpack_manage_modules' ) ) {
518
			wp_die( 'permissions check failed' );
519
		}
520
521
		if ( isset( $_REQUEST['toggleModule'] ) && 'nux-toggle-module' == $_REQUEST['toggleModule'] ) {
522
			$slug = $_REQUEST['thisModuleSlug'];
@@ 550-552 (lines=3) @@
547
	 */
548
	function jetpack_admin_ajax_refresh_data() {
549
		// Check for nonce
550
		if ( ! isset( $_REQUEST['adminNonce'] ) || ! wp_verify_nonce( $_REQUEST['adminNonce'], 'jetpack-admin-nonce' ) ) {
551
			wp_die( 'permissions check failed' );
552
		}
553
554
		if ( isset( $_REQUEST['refreshData'] ) && 'refresh' == $_REQUEST['refreshData'] ) {
555
			$modules = Jetpack_Admin::init()->get_modules();