Code Duplication    Length = 8-8 lines in 2 locations

class.jetpack.php 2 locations

@@ 4713-4720 (lines=8) @@
4710
		return ( $a['sort'] < $b['sort'] ) ? -1 : 1;
4711
	}
4712
4713
	function sync_reindex_trigger() {
4714
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
4715
			echo json_encode( $this->sync->reindex_trigger() );
4716
		} else {
4717
			echo '{"status":"ERROR"}';
4718
		}
4719
		exit;
4720
	}
4721
4722
	function sync_reindex_status(){
4723
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
@@ 4722-4729 (lines=8) @@
4719
		exit;
4720
	}
4721
4722
	function sync_reindex_status(){
4723
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
4724
			echo json_encode( $this->sync->reindex_status() );
4725
		} else {
4726
			echo '{"status":"ERROR"}';
4727
		}
4728
		exit;
4729
	}
4730
4731
	function ajax_recheck_ssl() {
4732
		check_ajax_referer( 'recheck-ssl', 'ajax-nonce' );