Code Duplication    Length = 8-8 lines in 2 locations

class.jetpack.php 2 locations

@@ 4871-4878 (lines=8) @@
4868
		return ( $a['sort'] < $b['sort'] ) ? -1 : 1;
4869
	}
4870
4871
	function sync_reindex_trigger() {
4872
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
4873
			echo json_encode( $this->sync->reindex_trigger() );
4874
		} else {
4875
			echo '{"status":"ERROR"}';
4876
		}
4877
		exit;
4878
	}
4879
4880
	function sync_reindex_status(){
4881
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
@@ 4880-4887 (lines=8) @@
4877
		exit;
4878
	}
4879
4880
	function sync_reindex_status(){
4881
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
4882
			echo json_encode( $this->sync->reindex_status() );
4883
		} else {
4884
			echo '{"status":"ERROR"}';
4885
		}
4886
		exit;
4887
	}
4888
4889
/* Client API */
4890