Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack.php 2 locations

@@ 554-556 (lines=3) @@
551
552
	function jetpack_admin_ajax_callback() {
553
		// Check for nonce
554
		if ( ! isset( $_REQUEST['adminNonce'] ) || ! wp_verify_nonce( $_REQUEST['adminNonce'], 'jetpack-admin-nonce' ) || ! current_user_can( 'jetpack_manage_modules' ) ) {
555
			wp_die( 'permissions check failed' );
556
		}
557
558
		if ( isset( $_REQUEST['toggleModule'] ) && 'nux-toggle-module' == $_REQUEST['toggleModule'] ) {
559
			$slug = $_REQUEST['thisModuleSlug'];
@@ 587-589 (lines=3) @@
584
	 */
585
	function jetpack_admin_ajax_refresh_data() {
586
		// Check for nonce
587
		if ( ! isset( $_REQUEST['adminNonce'] ) || ! wp_verify_nonce( $_REQUEST['adminNonce'], 'jetpack-admin-nonce' ) ) {
588
			wp_die( 'permissions check failed' );
589
		}
590
591
		if ( isset( $_REQUEST['refreshData'] ) && 'refresh' == $_REQUEST['refreshData'] ) {
592
			$modules = Jetpack_Admin::init()->get_modules();