Code Duplication    Length = 8-8 lines in 2 locations

class.jetpack.php 2 locations

@@ 4878-4885 (lines=8) @@
4875
		return ( $a['sort'] < $b['sort'] ) ? -1 : 1;
4876
	}
4877
4878
	function sync_reindex_trigger() {
4879
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
4880
			echo json_encode( $this->sync->reindex_trigger() );
4881
		} else {
4882
			echo '{"status":"ERROR"}';
4883
		}
4884
		exit;
4885
	}
4886
4887
	function sync_reindex_status(){
4888
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
@@ 4887-4894 (lines=8) @@
4884
		exit;
4885
	}
4886
4887
	function sync_reindex_status(){
4888
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
4889
			echo json_encode( $this->sync->reindex_status() );
4890
		} else {
4891
			echo '{"status":"ERROR"}';
4892
		}
4893
		exit;
4894
	}
4895
4896
/* Client API */
4897