Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack.php 2 locations

@@ 653-655 (lines=3) @@
650
651
	function jetpack_admin_ajax_callback() {
652
		// Check for nonce
653
		if ( ! isset( $_REQUEST['adminNonce'] ) || ! wp_verify_nonce( $_REQUEST['adminNonce'], 'jetpack-admin-nonce' ) || ! current_user_can( 'jetpack_manage_modules' ) ) {
654
			wp_die( 'permissions check failed' );
655
		}
656
657
		if ( isset( $_REQUEST['toggleModule'] ) && 'nux-toggle-module' == $_REQUEST['toggleModule'] ) {
658
			$slug = $_REQUEST['thisModuleSlug'];
@@ 686-688 (lines=3) @@
683
	 */
684
	function jetpack_admin_ajax_refresh_data() {
685
		// Check for nonce
686
		if ( ! isset( $_REQUEST['adminNonce'] ) || ! wp_verify_nonce( $_REQUEST['adminNonce'], 'jetpack-admin-nonce' ) ) {
687
			wp_die( 'permissions check failed' );
688
		}
689
690
		if ( isset( $_REQUEST['refreshData'] ) && 'refresh' == $_REQUEST['refreshData'] ) {
691
			$modules = Jetpack_Admin::init()->get_modules();