Code Duplication    Length = 8-8 lines in 2 locations

class.jetpack.php 2 locations

@@ 4718-4725 (lines=8) @@
4715
		return ( $a['sort'] < $b['sort'] ) ? -1 : 1;
4716
	}
4717
4718
	function sync_reindex_trigger() {
4719
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
4720
			echo json_encode( $this->sync->reindex_trigger() );
4721
		} else {
4722
			echo '{"status":"ERROR"}';
4723
		}
4724
		exit;
4725
	}
4726
4727
	function sync_reindex_status(){
4728
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
@@ 4727-4734 (lines=8) @@
4724
		exit;
4725
	}
4726
4727
	function sync_reindex_status(){
4728
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
4729
			echo json_encode( $this->sync->reindex_status() );
4730
		} else {
4731
			echo '{"status":"ERROR"}';
4732
		}
4733
		exit;
4734
	}
4735
4736
	function ajax_recheck_ssl() {
4737
		check_ajax_referer( 'recheck-ssl', 'ajax-nonce' );