Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack.php 2 locations

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