Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack.php 2 locations

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