Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack.php 2 locations

@@ 544-546 (lines=3) @@
541
542
	function jetpack_admin_ajax_callback() {
543
		// Check for nonce
544
		if ( ! isset( $_REQUEST['adminNonce'] ) || ! wp_verify_nonce( $_REQUEST['adminNonce'], 'jetpack-admin-nonce' ) || ! current_user_can( 'jetpack_manage_modules' ) ) {
545
			wp_die( 'permissions check failed' );
546
		}
547
548
		if ( isset( $_REQUEST['toggleModule'] ) && 'nux-toggle-module' == $_REQUEST['toggleModule'] ) {
549
			$slug = $_REQUEST['thisModuleSlug'];
@@ 577-579 (lines=3) @@
574
	 */
575
	function jetpack_admin_ajax_refresh_data() {
576
		// Check for nonce
577
		if ( ! isset( $_REQUEST['adminNonce'] ) || ! wp_verify_nonce( $_REQUEST['adminNonce'], 'jetpack-admin-nonce' ) ) {
578
			wp_die( 'permissions check failed' );
579
		}
580
581
		if ( isset( $_REQUEST['refreshData'] ) && 'refresh' == $_REQUEST['refreshData'] ) {
582
			$modules = Jetpack_Admin::init()->get_modules();