Code Duplication    Length = 8-8 lines in 2 locations

class.jetpack.php 2 locations

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