Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack.php 2 locations

@@ 690-692 (lines=3) @@
687
688
	function jetpack_admin_ajax_callback() {
689
		// Check for nonce
690
		if ( ! isset( $_REQUEST['adminNonce'] ) || ! wp_verify_nonce( $_REQUEST['adminNonce'], 'jetpack-admin-nonce' ) || ! current_user_can( 'jetpack_manage_modules' ) ) {
691
			wp_die( 'permissions check failed' );
692
		}
693
694
		if ( isset( $_REQUEST['toggleModule'] ) && 'nux-toggle-module' == $_REQUEST['toggleModule'] ) {
695
			$slug = $_REQUEST['thisModuleSlug'];
@@ 723-725 (lines=3) @@
720
	 */
721
	function jetpack_admin_ajax_refresh_data() {
722
		// Check for nonce
723
		if ( ! isset( $_REQUEST['adminNonce'] ) || ! wp_verify_nonce( $_REQUEST['adminNonce'], 'jetpack-admin-nonce' ) ) {
724
			wp_die( 'permissions check failed' );
725
		}
726
727
		if ( isset( $_REQUEST['refreshData'] ) && 'refresh' == $_REQUEST['refreshData'] ) {
728
			$modules = Jetpack_Admin::init()->get_modules();