Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack.php 2 locations

@@ 704-706 (lines=3) @@
701
702
	function jetpack_admin_ajax_callback() {
703
		// Check for nonce
704
		if ( ! isset( $_REQUEST['adminNonce'] ) || ! wp_verify_nonce( $_REQUEST['adminNonce'], 'jetpack-admin-nonce' ) || ! current_user_can( 'jetpack_manage_modules' ) ) {
705
			wp_die( 'permissions check failed' );
706
		}
707
708
		if ( isset( $_REQUEST['toggleModule'] ) && 'nux-toggle-module' == $_REQUEST['toggleModule'] ) {
709
			$slug = $_REQUEST['thisModuleSlug'];
@@ 737-739 (lines=3) @@
734
	 */
735
	function jetpack_admin_ajax_refresh_data() {
736
		// Check for nonce
737
		if ( ! isset( $_REQUEST['adminNonce'] ) || ! wp_verify_nonce( $_REQUEST['adminNonce'], 'jetpack-admin-nonce' ) ) {
738
			wp_die( 'permissions check failed' );
739
		}
740
741
		if ( isset( $_REQUEST['refreshData'] ) && 'refresh' == $_REQUEST['refreshData'] ) {
742
			$modules = Jetpack_Admin::init()->get_modules();