Code Duplication    Length = 8-8 lines in 2 locations

class.jetpack.php 2 locations

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