Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack.php 2 locations

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