Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack.php 2 locations

@@ 645-647 (lines=3) @@
642
643
	function jetpack_admin_ajax_callback() {
644
		// Check for nonce
645
		if ( ! isset( $_REQUEST['adminNonce'] ) || ! wp_verify_nonce( $_REQUEST['adminNonce'], 'jetpack-admin-nonce' ) || ! current_user_can( 'jetpack_manage_modules' ) ) {
646
			wp_die( 'permissions check failed' );
647
		}
648
649
		if ( isset( $_REQUEST['toggleModule'] ) && 'nux-toggle-module' == $_REQUEST['toggleModule'] ) {
650
			$slug = $_REQUEST['thisModuleSlug'];
@@ 678-680 (lines=3) @@
675
	 */
676
	function jetpack_admin_ajax_refresh_data() {
677
		// Check for nonce
678
		if ( ! isset( $_REQUEST['adminNonce'] ) || ! wp_verify_nonce( $_REQUEST['adminNonce'], 'jetpack-admin-nonce' ) ) {
679
			wp_die( 'permissions check failed' );
680
		}
681
682
		if ( isset( $_REQUEST['refreshData'] ) && 'refresh' == $_REQUEST['refreshData'] ) {
683
			$modules = Jetpack_Admin::init()->get_modules();