Code Duplication    Length = 8-8 lines in 2 locations

class.jetpack.php 2 locations

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