Code Duplication    Length = 8-8 lines in 2 locations

class.jetpack.php 2 locations

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