Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix formatting #16627

Merged
merged 1 commit into from
Aug 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ public async Task<IQueryResults> ExecuteQueryAsync(Query query, IDictionary<stri
{
var metadata = query.As<SqlQueryMetadata>();

var sqlQueryResults = new SQLQueryResults
{
Items = []
var sqlQueryResults = new SQLQueryResults
{
Items = []
};

var tokenizedQuery = await _liquidTemplateManager.RenderStringAsync(metadata.Template, NullEncoder.Default,
Expand Down
2 changes: 1 addition & 1 deletion src/OrchardCore.Modules/OrchardCore.Users/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ public override void ConfigureServices(IServiceCollection services)

services.AddSiteDisplayDriver<ResetPasswordSettingsDisplayDriver>();
services.AddNavigationProvider<ResetPasswordAdminMenu>();

services.AddScoped<IDisplayDriver<ResetPasswordForm>, ResetPasswordFormDisplayDriver>();
services.AddScoped<IDisplayDriver<LoginForm>, ForgotPasswordLoginFormDisplayDriver>();
services.AddScoped<IDisplayDriver<ForgotPasswordForm>, ForgotPasswordFormDisplayDriver>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ namespace OrchardCore.Users.Workflows.Activities;
public class UserConfirmedEvent : UserEvent
{
public UserConfirmedEvent(
IUserService userService,
IWorkflowScriptEvaluator scriptEvaluator,
IStringLocalizer<UserUpdatedEvent> stringLocalizer)
IUserService userService,
IWorkflowScriptEvaluator scriptEvaluator,
IStringLocalizer<UserUpdatedEvent> 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"];
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class WorkflowTrimmingViewModel

public WorkflowTrimmingViewModel()
{
Statuses = Enum.GetValues(typeof(WorkflowStatus))
Statuses = Enum.GetValues<WorkflowStatus>()
.Cast<WorkflowStatus>()
.Select(status => new WorkflowStatusItem
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace OrchardCore.Users.Handlers;
public class UserConfirmContext : UserContext
{
/// <inheritdocs />
public UserConfirmContext(IUser user)
public UserConfirmContext(IUser user)
: base(user)
{
}
Expand Down