Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack.php 2 locations

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