Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack.php 2 locations

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