Code Duplication    Length = 8-8 lines in 2 locations

class.jetpack.php 2 locations

@@ 4316-4323 (lines=8) @@
4313
		return ( $a['sort'] < $b['sort'] ) ? -1 : 1;
4314
	}
4315
4316
	function sync_reindex_trigger() {
4317
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
4318
			echo json_encode( $this->sync->reindex_trigger() );
4319
		} else {
4320
			echo '{"status":"ERROR"}';
4321
		}
4322
		exit;
4323
	}
4324
4325
	function sync_reindex_status(){
4326
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
@@ 4325-4332 (lines=8) @@
4322
		exit;
4323
	}
4324
4325
	function sync_reindex_status(){
4326
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
4327
			echo json_encode( $this->sync->reindex_status() );
4328
		} else {
4329
			echo '{"status":"ERROR"}';
4330
		}
4331
		exit;
4332
	}
4333
4334
/* Client API */
4335