Code Duplication    Length = 8-8 lines in 2 locations

class.jetpack.php 2 locations

@@ 4834-4841 (lines=8) @@
4831
		return ( $a['sort'] < $b['sort'] ) ? -1 : 1;
4832
	}
4833
4834
	function sync_reindex_trigger() {
4835
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
4836
			echo json_encode( $this->sync->reindex_trigger() );
4837
		} else {
4838
			echo '{"status":"ERROR"}';
4839
		}
4840
		exit;
4841
	}
4842
4843
	function sync_reindex_status(){
4844
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
@@ 4843-4850 (lines=8) @@
4840
		exit;
4841
	}
4842
4843
	function sync_reindex_status(){
4844
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
4845
			echo json_encode( $this->sync->reindex_status() );
4846
		} else {
4847
			echo '{"status":"ERROR"}';
4848
		}
4849
		exit;
4850
	}
4851
4852
/* Client API */
4853