Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack.php 2 locations

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