Code Duplication    Length = 8-8 lines in 2 locations

class.jetpack.php 2 locations

@@ 4885-4892 (lines=8) @@
4882
		return ( $a['sort'] < $b['sort'] ) ? -1 : 1;
4883
	}
4884
4885
	function sync_reindex_trigger() {
4886
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
4887
			echo json_encode( $this->sync->reindex_trigger() );
4888
		} else {
4889
			echo '{"status":"ERROR"}';
4890
		}
4891
		exit;
4892
	}
4893
4894
	function sync_reindex_status(){
4895
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
@@ 4894-4901 (lines=8) @@
4891
		exit;
4892
	}
4893
4894
	function sync_reindex_status(){
4895
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
4896
			echo json_encode( $this->sync->reindex_status() );
4897
		} else {
4898
			echo '{"status":"ERROR"}';
4899
		}
4900
		exit;
4901
	}
4902
4903
/* Client API */
4904