Code Duplication    Length = 8-8 lines in 2 locations

class.jetpack.php 2 locations

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