Code Duplication    Length = 8-8 lines in 2 locations

class.jetpack.php 2 locations

@@ 4888-4895 (lines=8) @@
4885
		return ( $a['sort'] < $b['sort'] ) ? -1 : 1;
4886
	}
4887
4888
	function sync_reindex_trigger() {
4889
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
4890
			echo json_encode( $this->sync->reindex_trigger() );
4891
		} else {
4892
			echo '{"status":"ERROR"}';
4893
		}
4894
		exit;
4895
	}
4896
4897
	function sync_reindex_status(){
4898
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
@@ 4897-4904 (lines=8) @@
4894
		exit;
4895
	}
4896
4897
	function sync_reindex_status(){
4898
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
4899
			echo json_encode( $this->sync->reindex_status() );
4900
		} else {
4901
			echo '{"status":"ERROR"}';
4902
		}
4903
		exit;
4904
	}
4905
4906
	function ajax_recheck_ssl() {
4907
		check_ajax_referer( 'recheck-ssl', 'ajax-nonce' );