Code Duplication    Length = 8-8 lines in 2 locations

class.jetpack.php 2 locations

@@ 4604-4611 (lines=8) @@
4601
		return ( $a['sort'] < $b['sort'] ) ? -1 : 1;
4602
	}
4603
4604
	function sync_reindex_trigger() {
4605
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
4606
			echo json_encode( $this->sync->reindex_trigger() );
4607
		} else {
4608
			echo '{"status":"ERROR"}';
4609
		}
4610
		exit;
4611
	}
4612
4613
	function sync_reindex_status(){
4614
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
@@ 4613-4620 (lines=8) @@
4610
		exit;
4611
	}
4612
4613
	function sync_reindex_status(){
4614
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
4615
			echo json_encode( $this->sync->reindex_status() );
4616
		} else {
4617
			echo '{"status":"ERROR"}';
4618
		}
4619
		exit;
4620
	}
4621
4622
/* Client API */
4623