Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack.php 2 locations

@@ 507-509 (lines=3) @@
504
505
	function jetpack_admin_ajax_callback() {
506
		// Check for nonce
507
		if ( ! isset( $_REQUEST['adminNonce'] ) || ! wp_verify_nonce( $_REQUEST['adminNonce'], 'jetpack-admin-nonce' ) || ! current_user_can( 'jetpack_manage_modules' ) ) {
508
			wp_die( 'permissions check failed' );
509
		}
510
511
		if ( isset( $_REQUEST['toggleModule'] ) && 'nux-toggle-module' == $_REQUEST['toggleModule'] ) {
512
			$slug = $_REQUEST['thisModuleSlug'];
@@ 540-542 (lines=3) @@
537
	 */
538
	function jetpack_admin_ajax_refresh_data() {
539
		// Check for nonce
540
		if ( ! isset( $_REQUEST['adminNonce'] ) || ! wp_verify_nonce( $_REQUEST['adminNonce'], 'jetpack-admin-nonce' ) ) {
541
			wp_die( 'permissions check failed' );
542
		}
543
544
		if ( isset( $_REQUEST['refreshData'] ) && 'refresh' == $_REQUEST['refreshData'] ) {
545
			$modules = Jetpack_Admin::init()->get_modules();