Code Duplication    Length = 8-8 lines in 2 locations

class.jetpack.php 2 locations

@@ 4805-4812 (lines=8) @@
4802
		return ( $a['sort'] < $b['sort'] ) ? -1 : 1;
4803
	}
4804
4805
	function sync_reindex_trigger() {
4806
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
4807
			echo json_encode( $this->sync->reindex_trigger() );
4808
		} else {
4809
			echo '{"status":"ERROR"}';
4810
		}
4811
		exit;
4812
	}
4813
4814
	function sync_reindex_status(){
4815
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
@@ 4814-4821 (lines=8) @@
4811
		exit;
4812
	}
4813
4814
	function sync_reindex_status(){
4815
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
4816
			echo json_encode( $this->sync->reindex_status() );
4817
		} else {
4818
			echo '{"status":"ERROR"}';
4819
		}
4820
		exit;
4821
	}
4822
4823
/* Client API */
4824