Code Duplication    Length = 8-8 lines in 2 locations

class.jetpack.php 2 locations

@@ 4758-4765 (lines=8) @@
4755
		return ( $a['sort'] < $b['sort'] ) ? -1 : 1;
4756
	}
4757
4758
	function sync_reindex_trigger() {
4759
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
4760
			echo json_encode( $this->sync->reindex_trigger() );
4761
		} else {
4762
			echo '{"status":"ERROR"}';
4763
		}
4764
		exit;
4765
	}
4766
4767
	function sync_reindex_status(){
4768
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
@@ 4767-4774 (lines=8) @@
4764
		exit;
4765
	}
4766
4767
	function sync_reindex_status(){
4768
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
4769
			echo json_encode( $this->sync->reindex_status() );
4770
		} else {
4771
			echo '{"status":"ERROR"}';
4772
		}
4773
		exit;
4774
	}
4775
4776
/* Client API */
4777