Code Duplication    Length = 8-8 lines in 2 locations

class.jetpack.php 2 locations

@@ 4705-4712 (lines=8) @@
4702
		return ( $a['sort'] < $b['sort'] ) ? -1 : 1;
4703
	}
4704
4705
	function sync_reindex_trigger() {
4706
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
4707
			echo json_encode( $this->sync->reindex_trigger() );
4708
		} else {
4709
			echo '{"status":"ERROR"}';
4710
		}
4711
		exit;
4712
	}
4713
4714
	function sync_reindex_status(){
4715
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
@@ 4714-4721 (lines=8) @@
4711
		exit;
4712
	}
4713
4714
	function sync_reindex_status(){
4715
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
4716
			echo json_encode( $this->sync->reindex_status() );
4717
		} else {
4718
			echo '{"status":"ERROR"}';
4719
		}
4720
		exit;
4721
	}
4722
4723
/* Client API */
4724