Code Duplication    Length = 8-8 lines in 2 locations

class.jetpack.php 2 locations

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