Code Duplication    Length = 8-8 lines in 2 locations

class.jetpack.php 2 locations

@@ 4326-4333 (lines=8) @@
4323
		return ( $a['sort'] < $b['sort'] ) ? -1 : 1;
4324
	}
4325
4326
	function sync_reindex_trigger() {
4327
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
4328
			echo json_encode( $this->sync->reindex_trigger() );
4329
		} else {
4330
			echo '{"status":"ERROR"}';
4331
		}
4332
		exit;
4333
	}
4334
4335
	function sync_reindex_status(){
4336
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
@@ 4335-4342 (lines=8) @@
4332
		exit;
4333
	}
4334
4335
	function sync_reindex_status(){
4336
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
4337
			echo json_encode( $this->sync->reindex_status() );
4338
		} else {
4339
			echo '{"status":"ERROR"}';
4340
		}
4341
		exit;
4342
	}
4343
4344
/* Client API */
4345