Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack.php 2 locations

@@ 525-527 (lines=3) @@
522
523
	function jetpack_admin_ajax_callback() {
524
		// Check for nonce
525
		if ( ! isset( $_REQUEST['adminNonce'] ) || ! wp_verify_nonce( $_REQUEST['adminNonce'], 'jetpack-admin-nonce' ) || ! current_user_can( 'jetpack_manage_modules' ) ) {
526
			wp_die( 'permissions check failed' );
527
		}
528
529
		if ( isset( $_REQUEST['toggleModule'] ) && 'nux-toggle-module' == $_REQUEST['toggleModule'] ) {
530
			$slug = $_REQUEST['thisModuleSlug'];
@@ 558-560 (lines=3) @@
555
	 */
556
	function jetpack_admin_ajax_refresh_data() {
557
		// Check for nonce
558
		if ( ! isset( $_REQUEST['adminNonce'] ) || ! wp_verify_nonce( $_REQUEST['adminNonce'], 'jetpack-admin-nonce' ) ) {
559
			wp_die( 'permissions check failed' );
560
		}
561
562
		if ( isset( $_REQUEST['refreshData'] ) && 'refresh' == $_REQUEST['refreshData'] ) {
563
			$modules = Jetpack_Admin::init()->get_modules();