Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack.php 2 locations

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