Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack.php 2 locations

@@ 652-654 (lines=3) @@
649
650
	function jetpack_admin_ajax_callback() {
651
		// Check for nonce
652
		if ( ! isset( $_REQUEST['adminNonce'] ) || ! wp_verify_nonce( $_REQUEST['adminNonce'], 'jetpack-admin-nonce' ) || ! current_user_can( 'jetpack_manage_modules' ) ) {
653
			wp_die( 'permissions check failed' );
654
		}
655
656
		if ( isset( $_REQUEST['toggleModule'] ) && 'nux-toggle-module' == $_REQUEST['toggleModule'] ) {
657
			$slug = $_REQUEST['thisModuleSlug'];
@@ 685-687 (lines=3) @@
682
	 */
683
	function jetpack_admin_ajax_refresh_data() {
684
		// Check for nonce
685
		if ( ! isset( $_REQUEST['adminNonce'] ) || ! wp_verify_nonce( $_REQUEST['adminNonce'], 'jetpack-admin-nonce' ) ) {
686
			wp_die( 'permissions check failed' );
687
		}
688
689
		if ( isset( $_REQUEST['refreshData'] ) && 'refresh' == $_REQUEST['refreshData'] ) {
690
			$modules = Jetpack_Admin::init()->get_modules();