Code Duplication    Length = 8-8 lines in 2 locations

class.jetpack.php 2 locations

@@ 4899-4906 (lines=8) @@
4896
		return ( $a['sort'] < $b['sort'] ) ? -1 : 1;
4897
	}
4898
4899
	function sync_reindex_trigger() {
4900
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
4901
			echo json_encode( $this->sync->reindex_trigger() );
4902
		} else {
4903
			echo '{"status":"ERROR"}';
4904
		}
4905
		exit;
4906
	}
4907
4908
	function sync_reindex_status(){
4909
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
@@ 4908-4915 (lines=8) @@
4905
		exit;
4906
	}
4907
4908
	function sync_reindex_status(){
4909
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
4910
			echo json_encode( $this->sync->reindex_status() );
4911
		} else {
4912
			echo '{"status":"ERROR"}';
4913
		}
4914
		exit;
4915
	}
4916
4917
	function ajax_recheck_ssl() {
4918
		check_ajax_referer( 'recheck-ssl', 'ajax-nonce' );