Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack.php 2 locations

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