From 1a01a51e383bb0887ecae2de1de5215d3b8b800e Mon Sep 17 00:00:00 2001 From: Sebastien Ros Date: Tue, 27 Aug 2024 11:43:36 -0700 Subject: [PATCH] Fix formatting --- .../OrchardCore.Queries/Sql/SqlQuerySource.cs | 6 +++--- src/OrchardCore.Modules/OrchardCore.Users/Startup.cs | 2 +- .../Workflows/Activities/UserConfirmedEvent.cs | 10 +++++----- .../Trimming/ViewModels/WorkflowTrimmingViewModel.cs | 2 +- .../Handlers/UserConfirmContext.cs | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/OrchardCore.Modules/OrchardCore.Queries/Sql/SqlQuerySource.cs b/src/OrchardCore.Modules/OrchardCore.Queries/Sql/SqlQuerySource.cs index 5bd0b0bb800..1749921e879 100644 --- a/src/OrchardCore.Modules/OrchardCore.Queries/Sql/SqlQuerySource.cs +++ b/src/OrchardCore.Modules/OrchardCore.Queries/Sql/SqlQuerySource.cs @@ -51,9 +51,9 @@ public async Task ExecuteQueryAsync(Query query, IDictionary(); - var sqlQueryResults = new SQLQueryResults - { - Items = [] + var sqlQueryResults = new SQLQueryResults + { + Items = [] }; var tokenizedQuery = await _liquidTemplateManager.RenderStringAsync(metadata.Template, NullEncoder.Default, diff --git a/src/OrchardCore.Modules/OrchardCore.Users/Startup.cs b/src/OrchardCore.Modules/OrchardCore.Users/Startup.cs index b099edd9d46..4ee688f27fa 100644 --- a/src/OrchardCore.Modules/OrchardCore.Users/Startup.cs +++ b/src/OrchardCore.Modules/OrchardCore.Users/Startup.cs @@ -517,7 +517,7 @@ public override void ConfigureServices(IServiceCollection services) services.AddSiteDisplayDriver(); services.AddNavigationProvider(); - + services.AddScoped, ResetPasswordFormDisplayDriver>(); services.AddScoped, ForgotPasswordLoginFormDisplayDriver>(); services.AddScoped, ForgotPasswordFormDisplayDriver>(); diff --git a/src/OrchardCore.Modules/OrchardCore.Users/Workflows/Activities/UserConfirmedEvent.cs b/src/OrchardCore.Modules/OrchardCore.Users/Workflows/Activities/UserConfirmedEvent.cs index d2ec27b881b..5e9ec1415be 100644 --- a/src/OrchardCore.Modules/OrchardCore.Users/Workflows/Activities/UserConfirmedEvent.cs +++ b/src/OrchardCore.Modules/OrchardCore.Users/Workflows/Activities/UserConfirmedEvent.cs @@ -7,16 +7,16 @@ namespace OrchardCore.Users.Workflows.Activities; public class UserConfirmedEvent : UserEvent { public UserConfirmedEvent( - IUserService userService, - IWorkflowScriptEvaluator scriptEvaluator, - IStringLocalizer stringLocalizer) + IUserService userService, + IWorkflowScriptEvaluator scriptEvaluator, + IStringLocalizer stringLocalizer) : base(userService, scriptEvaluator, stringLocalizer) { } - public override string Name + public override string Name => nameof(UserConfirmedEvent); - public override LocalizedString DisplayText + public override LocalizedString DisplayText => S["User Confirmed Event"]; } diff --git a/src/OrchardCore.Modules/OrchardCore.Workflows/Trimming/ViewModels/WorkflowTrimmingViewModel.cs b/src/OrchardCore.Modules/OrchardCore.Workflows/Trimming/ViewModels/WorkflowTrimmingViewModel.cs index 5c28e143678..b4e1b36e340 100644 --- a/src/OrchardCore.Modules/OrchardCore.Workflows/Trimming/ViewModels/WorkflowTrimmingViewModel.cs +++ b/src/OrchardCore.Modules/OrchardCore.Workflows/Trimming/ViewModels/WorkflowTrimmingViewModel.cs @@ -14,7 +14,7 @@ public class WorkflowTrimmingViewModel public WorkflowTrimmingViewModel() { - Statuses = Enum.GetValues(typeof(WorkflowStatus)) + Statuses = Enum.GetValues() .Cast() .Select(status => new WorkflowStatusItem { diff --git a/src/OrchardCore/OrchardCore.Users.Abstractions/Handlers/UserConfirmContext.cs b/src/OrchardCore/OrchardCore.Users.Abstractions/Handlers/UserConfirmContext.cs index fefc0dafaa3..7fa3be08b75 100644 --- a/src/OrchardCore/OrchardCore.Users.Abstractions/Handlers/UserConfirmContext.cs +++ b/src/OrchardCore/OrchardCore.Users.Abstractions/Handlers/UserConfirmContext.cs @@ -6,7 +6,7 @@ namespace OrchardCore.Users.Handlers; public class UserConfirmContext : UserContext { /// - public UserConfirmContext(IUser user) + public UserConfirmContext(IUser user) : base(user) { }