Lowercase actual parameters in code and remove whitespace to comply with StyleCopAnalyzers

This commit is contained in:
ZadenRB 2020-04-15 00:24:15 -06:00
parent 16a66dc89c
commit 72862d7b46
2 changed files with 10 additions and 10 deletions

View File

@ -60,18 +60,18 @@ namespace Jellyfin.Api.Controllers
/// <summary>
/// Endpoint for updating the initial startup wizard configuration.
/// </summary>
/// <param name="UICulture">The UI language culture.</param>
/// <param name="MetadataCountryCode">The metadata country code.</param>
/// <param name="PreferredMetadataLanguage">The preferred language for metadata.</param>
/// <param name="uiCulture">The UI language culture.</param>
/// <param name="metadataCountryCode">The metadata country code.</param>
/// <param name="preferredMetadataLanguage">The preferred language for metadata.</param>
[HttpPost("Configuration")]
public void UpdateInitialConfiguration(
[FromForm] string UICulture,
[FromForm] string MetadataCountryCode,
[FromForm] string PreferredMetadataLanguage)
[FromForm] string uiCulture,
[FromForm] string metadataCountryCode,
[FromForm] string preferredMetadataLanguage)
{
_config.Configuration.UICulture = UICulture;
_config.Configuration.MetadataCountryCode = MetadataCountryCode;
_config.Configuration.PreferredMetadataLanguage = PreferredMetadataLanguage;
_config.Configuration.UICulture = uiCulture;
_config.Configuration.MetadataCountryCode = metadataCountryCode;
_config.Configuration.PreferredMetadataLanguage = preferredMetadataLanguage;
_config.SaveConfiguration();
}

View File

@ -71,7 +71,7 @@ namespace Jellyfin.Server.Extensions
// Clear app parts to avoid other assemblies being picked up
.ConfigureApplicationPartManager(a => a.ApplicationParts.Clear())
.AddApplicationPart(typeof(StartupController).Assembly)
.AddJsonOptions(options =>
.AddJsonOptions(options =>
{
options.JsonSerializerOptions.PropertyNamingPolicy = null;
})