Code Duplication    Length = 8-8 lines in 2 locations

class.jetpack.php 2 locations

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