Code Duplication    Length = 8-8 lines in 2 locations

class.jetpack.php 2 locations

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