Code Duplication    Length = 8-8 lines in 2 locations

class.jetpack.php 2 locations

@@ 4629-4636 (lines=8) @@
4626
		return ( $a['sort'] < $b['sort'] ) ? -1 : 1;
4627
	}
4628
4629
	function sync_reindex_trigger() {
4630
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
4631
			echo json_encode( $this->sync->reindex_trigger() );
4632
		} else {
4633
			echo '{"status":"ERROR"}';
4634
		}
4635
		exit;
4636
	}
4637
4638
	function sync_reindex_status(){
4639
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
@@ 4638-4645 (lines=8) @@
4635
		exit;
4636
	}
4637
4638
	function sync_reindex_status(){
4639
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
4640
			echo json_encode( $this->sync->reindex_status() );
4641
		} else {
4642
			echo '{"status":"ERROR"}';
4643
		}
4644
		exit;
4645
	}
4646
4647
/* Client API */
4648