New line before open brace (Remove Java-like brackets)
MODIFY
WalletWasabi.Backend/Controllers/BlockchainController.cs
WalletWasabi.Backend/Controllers/BlockchainController.cs
@@ -291,7 +291,8 @@ namespace WalletWasabi.Backend.Controllers
return NoContent();
}
- var response = new FiltersResponse {
+ var response = new FiltersResponse
+ {
BestHeight = bestHeight,
Filters = filters
};

MODIFY
WalletWasabi.Tests/ExtPubKeyExplorerTests.cs
WalletWasabi.Tests/ExtPubKeyExplorerTests.cs
@@ -111,7 +111,8 @@ namespace WalletWasabi.Tests
.SetP(20);
builder.AddEntries(scripts);
- return new FilterModel {
+ return new FilterModel
+ {
BlockHeight = 0,
BlockHash = new uint256(blockHash),
Filter = builder.Build()

MODIFY
WalletWasabi/Backend/Models/FilterModel.cs
WalletWasabi/Backend/Models/FilterModel.cs
@@ -78,7 +78,8 @@ namespace WalletWasabi.Backend.Models
if (Height.TryParse(parts[0], out Height blockHeight))
{
- return new FilterModel {
+ return new FilterModel
+ {
BlockHeight = blockHeight,
BlockHash = new uint256(parts[1]),
Filter = filter
@@ -97,7 +98,8 @@ namespace WalletWasabi.Backend.Models
if (parts.Length == 1) // no bech here
{
- return new FilterModel {
+ return new FilterModel
+ {
BlockHeight = Guard.NotNull(nameof(height), height),
BlockHash = new uint256(parts[0]),
Filter = null
@@ -107,7 +109,8 @@ namespace WalletWasabi.Backend.Models
var data = Encoders.Hex.DecodeData(parts[1]);
var filter = new GolombRiceFilter(data, 20, 1 << 20);
- return new FilterModel {
+ return new FilterModel
+ {
BlockHeight = Guard.NotNull(nameof(height), height),
BlockHash = new uint256(parts[0]),
Filter = filter
@@ -133,7 +136,8 @@ namespace WalletWasabi.Backend.Models
byte[] data = stream.ReadBytes(filterSize);
GolombRiceFilter filter = filterSize > 0 ? new GolombRiceFilter(data, 20, 1 << 20) : null;
- return new FilterModel {
+ return new FilterModel
+ {
BlockHeight = Guard.NotNull(nameof(height), height),
BlockHash = blockHash,
Filter = filter

MODIFY
WalletWasabi/Crypto/StringCipher.cs
WalletWasabi/Crypto/StringCipher.cs
@@ -125,7 +125,8 @@ namespace WalletWasabi.Crypto
private static AesManaged CreateAES()
{
- var aes = new AesManaged {
+ var aes = new AesManaged
+ {
BlockSize = 128,
Mode = CipherMode.CBC,
Padding = PaddingMode.PKCS7

MODIFY
WalletWasabi/Extensions/HttpRequestMessageExtensions.cs
WalletWasabi/Extensions/HttpRequestMessageExtensions.cs
@@ -103,7 +103,8 @@ namespace System.Net.Http
public static async Task<HttpRequestMessage> CloneAsync(this HttpRequestMessage me)
{
- var newMessage = new HttpRequestMessage(me.Method, me.RequestUri) {
+ var newMessage = new HttpRequestMessage(me.Method, me.RequestUri)
+ {
Version = me.Version
};

MODIFY
WalletWasabi/Gma/QrCodeNet/Encoding/DataEncodation/DataEncode.cs
WalletWasabi/Gma/QrCodeNet/Encoding/DataEncodation/DataEncode.cs
@@ -48,7 +48,8 @@ namespace Gma.QrCodeNet.Encoding.DataEncodation
throw new ArgumentException("datacodewords num of bytes not equal to NumDataBytes for current version");
}
- var encStruct = new EncodationStruct(vcStruct) {
+ var encStruct = new EncodationStruct(vcStruct)
+ {
DataCodewords = dataCodewords
};
return encStruct;
@@ -90,7 +91,8 @@ namespace Gma.QrCodeNet.Encoding.DataEncodation
throw new ArgumentException("datacodewords num of bytes not equal to NumDataBytes for current version");
}
- var encStruct = new EncodationStruct(vcStruct) {
+ var encStruct = new EncodationStruct(vcStruct)
+ {
DataCodewords = dataCodewords
};
return encStruct;

MODIFY
WalletWasabi/Http/Models/HeaderSection.cs
WalletWasabi/Http/Models/HeaderSection.cs
@@ -125,7 +125,8 @@ namespace WalletWasabi.Http.Models
public HttpRequestContentHeaders ToHttpRequestHeaders()
{
- using (var message = new HttpRequestMessage {
+ using (var message = new HttpRequestMessage
+ {
Content = new ByteArrayContent(new byte[] { })
})
{
@@ -142,7 +143,8 @@ namespace WalletWasabi.Http.Models
}
}
- return new HttpRequestContentHeaders {
+ return new HttpRequestContentHeaders
+ {
RequestHeaders = message.Headers,
ContentHeaders = message.Content.Headers
};
@@ -151,7 +153,8 @@ namespace WalletWasabi.Http.Models
public HttpResponseContentHeaders ToHttpResponseHeaders()
{
- using (var message = new HttpResponseMessage {
+ using (var message = new HttpResponseMessage
+ {
Content = new ByteArrayContent(new byte[] { })
})
{
@@ -168,7 +171,8 @@ namespace WalletWasabi.Http.Models
}
}
- return new HttpResponseContentHeaders {
+ return new HttpResponseContentHeaders
+ {
ResponseHeaders = message.Headers,
ContentHeaders = message.Content.Headers
};

MODIFY
WalletWasabi/Mono/OptionSet.cs
WalletWasabi/Mono/OptionSet.cs
@@ -180,7 +180,8 @@ namespace Mono.Options
MessageLocalizer = localizer;
if (MessageLocalizer is null)
{
- MessageLocalizer = delegate (string f) {
+ MessageLocalizer = delegate (string f)
+ {
return f;
};
}

New line before open brace (Remove Java-like brackets)