Code Duplication    Length = 8-8 lines in 2 locations

class.jetpack.php 2 locations

@@ 4851-4858 (lines=8) @@
4848
		return ( $a['sort'] < $b['sort'] ) ? -1 : 1;
4849
	}
4850
4851
	function sync_reindex_trigger() {
4852
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
4853
			echo json_encode( $this->sync->reindex_trigger() );
4854
		} else {
4855
			echo '{"status":"ERROR"}';
4856
		}
4857
		exit;
4858
	}
4859
4860
	function sync_reindex_status(){
4861
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
@@ 4860-4867 (lines=8) @@
4857
		exit;
4858
	}
4859
4860
	function sync_reindex_status(){
4861
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
4862
			echo json_encode( $this->sync->reindex_status() );
4863
		} else {
4864
			echo '{"status":"ERROR"}';
4865
		}
4866
		exit;
4867
	}
4868
4869
/* Client API */
4870