Code Duplication    Length = 8-8 lines in 2 locations

class.jetpack.php 2 locations

@@ 4768-4775 (lines=8) @@
4765
		return ( $a['sort'] < $b['sort'] ) ? -1 : 1;
4766
	}
4767
4768
	function sync_reindex_trigger() {
4769
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
4770
			echo json_encode( $this->sync->reindex_trigger() );
4771
		} else {
4772
			echo '{"status":"ERROR"}';
4773
		}
4774
		exit;
4775
	}
4776
4777
	function sync_reindex_status(){
4778
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
@@ 4777-4784 (lines=8) @@
4774
		exit;
4775
	}
4776
4777
	function sync_reindex_status(){
4778
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
4779
			echo json_encode( $this->sync->reindex_status() );
4780
		} else {
4781
			echo '{"status":"ERROR"}';
4782
		}
4783
		exit;
4784
	}
4785
4786
/* Client API */
4787