Code Duplication    Length = 8-8 lines in 2 locations

class.jetpack.php 2 locations

@@ 4336-4343 (lines=8) @@
4333
		return ( $a['sort'] < $b['sort'] ) ? -1 : 1;
4334
	}
4335
4336
	function sync_reindex_trigger() {
4337
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
4338
			echo json_encode( $this->sync->reindex_trigger() );
4339
		} else {
4340
			echo '{"status":"ERROR"}';
4341
		}
4342
		exit;
4343
	}
4344
4345
	function sync_reindex_status(){
4346
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
@@ 4345-4352 (lines=8) @@
4342
		exit;
4343
	}
4344
4345
	function sync_reindex_status(){
4346
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
4347
			echo json_encode( $this->sync->reindex_status() );
4348
		} else {
4349
			echo '{"status":"ERROR"}';
4350
		}
4351
		exit;
4352
	}
4353
4354
/* Client API */
4355