Code Duplication    Length = 8-8 lines in 2 locations

class.jetpack.php 2 locations

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