Code Duplication    Length = 8-8 lines in 2 locations

class.jetpack.php 2 locations

@@ 4855-4862 (lines=8) @@
4852
		return ( $a['sort'] < $b['sort'] ) ? -1 : 1;
4853
	}
4854
4855
	function sync_reindex_trigger() {
4856
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
4857
			echo json_encode( $this->sync->reindex_trigger() );
4858
		} else {
4859
			echo '{"status":"ERROR"}';
4860
		}
4861
		exit;
4862
	}
4863
4864
	function sync_reindex_status(){
4865
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
@@ 4864-4871 (lines=8) @@
4861
		exit;
4862
	}
4863
4864
	function sync_reindex_status(){
4865
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
4866
			echo json_encode( $this->sync->reindex_status() );
4867
		} else {
4868
			echo '{"status":"ERROR"}';
4869
		}
4870
		exit;
4871
	}
4872
4873
/* Client API */
4874