Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack.php 2 locations

@@ 699-701 (lines=3) @@
696
697
	function jetpack_admin_ajax_callback() {
698
		// Check for nonce
699
		if ( ! isset( $_REQUEST['adminNonce'] ) || ! wp_verify_nonce( $_REQUEST['adminNonce'], 'jetpack-admin-nonce' ) || ! current_user_can( 'jetpack_manage_modules' ) ) {
700
			wp_die( 'permissions check failed' );
701
		}
702
703
		if ( isset( $_REQUEST['toggleModule'] ) && 'nux-toggle-module' == $_REQUEST['toggleModule'] ) {
704
			$slug = $_REQUEST['thisModuleSlug'];
@@ 732-734 (lines=3) @@
729
	 */
730
	function jetpack_admin_ajax_refresh_data() {
731
		// Check for nonce
732
		if ( ! isset( $_REQUEST['adminNonce'] ) || ! wp_verify_nonce( $_REQUEST['adminNonce'], 'jetpack-admin-nonce' ) ) {
733
			wp_die( 'permissions check failed' );
734
		}
735
736
		if ( isset( $_REQUEST['refreshData'] ) && 'refresh' == $_REQUEST['refreshData'] ) {
737
			$modules = Jetpack_Admin::init()->get_modules();