Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack.php 2 locations

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