Code Duplication    Length = 8-8 lines in 2 locations

class.jetpack.php 2 locations

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