Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack.php 2 locations

@@ 640-642 (lines=3) @@
637
638
	function jetpack_admin_ajax_callback() {
639
		// Check for nonce
640
		if ( ! isset( $_REQUEST['adminNonce'] ) || ! wp_verify_nonce( $_REQUEST['adminNonce'], 'jetpack-admin-nonce' ) || ! current_user_can( 'jetpack_manage_modules' ) ) {
641
			wp_die( 'permissions check failed' );
642
		}
643
644
		if ( isset( $_REQUEST['toggleModule'] ) && 'nux-toggle-module' == $_REQUEST['toggleModule'] ) {
645
			$slug = $_REQUEST['thisModuleSlug'];
@@ 673-675 (lines=3) @@
670
	 */
671
	function jetpack_admin_ajax_refresh_data() {
672
		// Check for nonce
673
		if ( ! isset( $_REQUEST['adminNonce'] ) || ! wp_verify_nonce( $_REQUEST['adminNonce'], 'jetpack-admin-nonce' ) ) {
674
			wp_die( 'permissions check failed' );
675
		}
676
677
		if ( isset( $_REQUEST['refreshData'] ) && 'refresh' == $_REQUEST['refreshData'] ) {
678
			$modules = Jetpack_Admin::init()->get_modules();