Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack.php 2 locations

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