Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack.php 2 locations

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