Code Duplication    Length = 8-8 lines in 2 locations

class.jetpack.php 2 locations

@@ 4782-4789 (lines=8) @@
4779
		return ( $a['sort'] < $b['sort'] ) ? -1 : 1;
4780
	}
4781
4782
	function sync_reindex_trigger() {
4783
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
4784
			echo json_encode( $this->sync->reindex_trigger() );
4785
		} else {
4786
			echo '{"status":"ERROR"}';
4787
		}
4788
		exit;
4789
	}
4790
4791
	function sync_reindex_status(){
4792
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
@@ 4791-4798 (lines=8) @@
4788
		exit;
4789
	}
4790
4791
	function sync_reindex_status(){
4792
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
4793
			echo json_encode( $this->sync->reindex_status() );
4794
		} else {
4795
			echo '{"status":"ERROR"}';
4796
		}
4797
		exit;
4798
	}
4799
4800
/* Client API */
4801