Code Duplication    Length = 8-8 lines in 2 locations

class.jetpack.php 2 locations

@@ 4701-4708 (lines=8) @@
4698
		return ( $a['sort'] < $b['sort'] ) ? -1 : 1;
4699
	}
4700
4701
	function sync_reindex_trigger() {
4702
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
4703
			echo json_encode( $this->sync->reindex_trigger() );
4704
		} else {
4705
			echo '{"status":"ERROR"}';
4706
		}
4707
		exit;
4708
	}
4709
4710
	function sync_reindex_status(){
4711
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
@@ 4710-4717 (lines=8) @@
4707
		exit;
4708
	}
4709
4710
	function sync_reindex_status(){
4711
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
4712
			echo json_encode( $this->sync->reindex_status() );
4713
		} else {
4714
			echo '{"status":"ERROR"}';
4715
		}
4716
		exit;
4717
	}
4718
4719
/* Client API */
4720