Code Duplication    Length = 8-8 lines in 2 locations

class.jetpack.php 2 locations

@@ 4818-4825 (lines=8) @@
4815
		return ( $a['sort'] < $b['sort'] ) ? -1 : 1;
4816
	}
4817
4818
	function sync_reindex_trigger() {
4819
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
4820
			echo json_encode( $this->sync->reindex_trigger() );
4821
		} else {
4822
			echo '{"status":"ERROR"}';
4823
		}
4824
		exit;
4825
	}
4826
4827
	function sync_reindex_status(){
4828
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
@@ 4827-4834 (lines=8) @@
4824
		exit;
4825
	}
4826
4827
	function sync_reindex_status(){
4828
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
4829
			echo json_encode( $this->sync->reindex_status() );
4830
		} else {
4831
			echo '{"status":"ERROR"}';
4832
		}
4833
		exit;
4834
	}
4835
4836
/* Client API */
4837