Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack.php 2 locations

@@ 689-691 (lines=3) @@
686
687
	function jetpack_admin_ajax_callback() {
688
		// Check for nonce
689
		if ( ! isset( $_REQUEST['adminNonce'] ) || ! wp_verify_nonce( $_REQUEST['adminNonce'], 'jetpack-admin-nonce' ) || ! current_user_can( 'jetpack_manage_modules' ) ) {
690
			wp_die( 'permissions check failed' );
691
		}
692
693
		if ( isset( $_REQUEST['toggleModule'] ) && 'nux-toggle-module' == $_REQUEST['toggleModule'] ) {
694
			$slug = $_REQUEST['thisModuleSlug'];
@@ 722-724 (lines=3) @@
719
	 */
720
	function jetpack_admin_ajax_refresh_data() {
721
		// Check for nonce
722
		if ( ! isset( $_REQUEST['adminNonce'] ) || ! wp_verify_nonce( $_REQUEST['adminNonce'], 'jetpack-admin-nonce' ) ) {
723
			wp_die( 'permissions check failed' );
724
		}
725
726
		if ( isset( $_REQUEST['refreshData'] ) && 'refresh' == $_REQUEST['refreshData'] ) {
727
			$modules = Jetpack_Admin::init()->get_modules();