Code Duplication    Length = 8-8 lines in 2 locations

class.jetpack.php 2 locations

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