Code Duplication    Length = 8-8 lines in 2 locations

class.jetpack.php 2 locations

@@ 4780-4787 (lines=8) @@
4777
		return ( $a['sort'] < $b['sort'] ) ? -1 : 1;
4778
	}
4779
4780
	function sync_reindex_trigger() {
4781
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
4782
			echo json_encode( $this->sync->reindex_trigger() );
4783
		} else {
4784
			echo '{"status":"ERROR"}';
4785
		}
4786
		exit;
4787
	}
4788
4789
	function sync_reindex_status(){
4790
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
@@ 4789-4796 (lines=8) @@
4786
		exit;
4787
	}
4788
4789
	function sync_reindex_status(){
4790
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
4791
			echo json_encode( $this->sync->reindex_status() );
4792
		} else {
4793
			echo '{"status":"ERROR"}';
4794
		}
4795
		exit;
4796
	}
4797
4798
/* Client API */
4799