Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack.php 2 locations

@@ 662-664 (lines=3) @@
659
660
	function jetpack_admin_ajax_callback() {
661
		// Check for nonce
662
		if ( ! isset( $_REQUEST['adminNonce'] ) || ! wp_verify_nonce( $_REQUEST['adminNonce'], 'jetpack-admin-nonce' ) || ! current_user_can( 'jetpack_manage_modules' ) ) {
663
			wp_die( 'permissions check failed' );
664
		}
665
666
		if ( isset( $_REQUEST['toggleModule'] ) && 'nux-toggle-module' == $_REQUEST['toggleModule'] ) {
667
			$slug = $_REQUEST['thisModuleSlug'];
@@ 695-697 (lines=3) @@
692
	 */
693
	function jetpack_admin_ajax_refresh_data() {
694
		// Check for nonce
695
		if ( ! isset( $_REQUEST['adminNonce'] ) || ! wp_verify_nonce( $_REQUEST['adminNonce'], 'jetpack-admin-nonce' ) ) {
696
			wp_die( 'permissions check failed' );
697
		}
698
699
		if ( isset( $_REQUEST['refreshData'] ) && 'refresh' == $_REQUEST['refreshData'] ) {
700
			$modules = Jetpack_Admin::init()->get_modules();