Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack.php 2 locations

@@ 560-562 (lines=3) @@
557
558
	function jetpack_admin_ajax_callback() {
559
		// Check for nonce
560
		if ( ! isset( $_REQUEST['adminNonce'] ) || ! wp_verify_nonce( $_REQUEST['adminNonce'], 'jetpack-admin-nonce' ) || ! current_user_can( 'jetpack_manage_modules' ) ) {
561
			wp_die( 'permissions check failed' );
562
		}
563
564
		if ( isset( $_REQUEST['toggleModule'] ) && 'nux-toggle-module' == $_REQUEST['toggleModule'] ) {
565
			$slug = $_REQUEST['thisModuleSlug'];
@@ 593-595 (lines=3) @@
590
	 */
591
	function jetpack_admin_ajax_refresh_data() {
592
		// Check for nonce
593
		if ( ! isset( $_REQUEST['adminNonce'] ) || ! wp_verify_nonce( $_REQUEST['adminNonce'], 'jetpack-admin-nonce' ) ) {
594
			wp_die( 'permissions check failed' );
595
		}
596
597
		if ( isset( $_REQUEST['refreshData'] ) && 'refresh' == $_REQUEST['refreshData'] ) {
598
			$modules = Jetpack_Admin::init()->get_modules();