Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack.php 2 locations

@@ 736-738 (lines=3) @@
733
734
	function jetpack_admin_ajax_callback() {
735
		// Check for nonce
736
		if ( ! isset( $_REQUEST['adminNonce'] ) || ! wp_verify_nonce( $_REQUEST['adminNonce'], 'jetpack-admin-nonce' ) || ! current_user_can( 'jetpack_manage_modules' ) ) {
737
			wp_die( 'permissions check failed' );
738
		}
739
740
		if ( isset( $_REQUEST['toggleModule'] ) && 'nux-toggle-module' == $_REQUEST['toggleModule'] ) {
741
			$slug = $_REQUEST['thisModuleSlug'];
@@ 769-771 (lines=3) @@
766
	 */
767
	function jetpack_admin_ajax_refresh_data() {
768
		// Check for nonce
769
		if ( ! isset( $_REQUEST['adminNonce'] ) || ! wp_verify_nonce( $_REQUEST['adminNonce'], 'jetpack-admin-nonce' ) ) {
770
			wp_die( 'permissions check failed' );
771
		}
772
773
		if ( isset( $_REQUEST['refreshData'] ) && 'refresh' == $_REQUEST['refreshData'] ) {
774
			$modules = Jetpack_Admin::init()->get_modules();