Code Duplication    Length = 8-8 lines in 2 locations

class.jetpack.php 2 locations

@@ 4303-4310 (lines=8) @@
4300
		return ( $a['sort'] < $b['sort'] ) ? -1 : 1;
4301
	}
4302
4303
	function sync_reindex_trigger() {
4304
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
4305
			echo json_encode( $this->sync->reindex_trigger() );
4306
		} else {
4307
			echo '{"status":"ERROR"}';
4308
		}
4309
		exit;
4310
	}
4311
4312
	function sync_reindex_status(){
4313
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
@@ 4312-4319 (lines=8) @@
4309
		exit;
4310
	}
4311
4312
	function sync_reindex_status(){
4313
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
4314
			echo json_encode( $this->sync->reindex_status() );
4315
		} else {
4316
			echo '{"status":"ERROR"}';
4317
		}
4318
		exit;
4319
	}
4320
4321
	function ajax_recheck_ssl() {
4322
		check_ajax_referer( 'recheck-ssl', 'ajax-nonce' );