Code Duplication    Length = 8-8 lines in 2 locations

class.jetpack.php 2 locations

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