Code Duplication    Length = 8-8 lines in 2 locations

class.jetpack.php 2 locations

@@ 4639-4646 (lines=8) @@
4636
		return ( $a['sort'] < $b['sort'] ) ? -1 : 1;
4637
	}
4638
4639
	function sync_reindex_trigger() {
4640
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
4641
			echo json_encode( $this->sync->reindex_trigger() );
4642
		} else {
4643
			echo '{"status":"ERROR"}';
4644
		}
4645
		exit;
4646
	}
4647
4648
	function sync_reindex_status(){
4649
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
@@ 4648-4655 (lines=8) @@
4645
		exit;
4646
	}
4647
4648
	function sync_reindex_status(){
4649
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
4650
			echo json_encode( $this->sync->reindex_status() );
4651
		} else {
4652
			echo '{"status":"ERROR"}';
4653
		}
4654
		exit;
4655
	}
4656
4657
/* Client API */
4658