Code Duplication    Length = 8-8 lines in 2 locations

class.jetpack.php 2 locations

@@ 4789-4796 (lines=8) @@
4786
		return ( $a['sort'] < $b['sort'] ) ? -1 : 1;
4787
	}
4788
4789
	function sync_reindex_trigger() {
4790
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
4791
			echo json_encode( $this->sync->reindex_trigger() );
4792
		} else {
4793
			echo '{"status":"ERROR"}';
4794
		}
4795
		exit;
4796
	}
4797
4798
	function sync_reindex_status(){
4799
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
@@ 4798-4805 (lines=8) @@
4795
		exit;
4796
	}
4797
4798
	function sync_reindex_status(){
4799
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
4800
			echo json_encode( $this->sync->reindex_status() );
4801
		} else {
4802
			echo '{"status":"ERROR"}';
4803
		}
4804
		exit;
4805
	}
4806
4807
/* Client API */
4808