Skip to content

Commit 3c026f7

Browse files
author
dirk
committed
Resolved SA1110, SA1117, SA1210 and SA1500.
1 parent 7bdbbb5 commit 3c026f7

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

src/ImageSharp/Formats/Jpg/JpegEncoderCore.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ internal class JpegEncoderCore
4949
/// The values are derived from section K.1 after converting from natural to
5050
/// zig-zag order.
5151
/// </summary>
52-
private readonly byte[,] unscaledQuant = {
52+
private readonly byte[,] unscaledQuant =
53+
{
5354
{
5455
// Luminance.
5556
16, 11, 12, 14, 12, 10, 16, 14, 13, 14, 18, 17, 16, 19, 24, 40,
@@ -71,7 +72,8 @@ internal class JpegEncoderCore
7172
/// The Huffman encoding specifications.
7273
/// This encoder uses the same Huffman encoding for all images.
7374
/// </summary>
74-
private readonly HuffmanSpec[] theHuffmanSpec = {
75+
private readonly HuffmanSpec[] theHuffmanSpec =
76+
{
7577
// Luminance DC.
7678
new HuffmanSpec(
7779
new byte[]

src/ImageSharp/Formats/Png/PngEncoderCore.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ private void WriteGammaChunk(Stream stream)
611611
/// <param name="stream">The stream.</param>
612612
private void WriteDataChunks(Stream stream)
613613
{
614-
byte[] data = this.EncodePixelData();
614+
byte[] data = this.EncodePixelData();
615615

616616
byte[] buffer;
617617
int bufferLength;

src/ImageSharp/Formats/Png/Zlib/ZlibDeflateStream.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,8 @@ protected override void Dispose(bool disposing)
184184
this.deflateStream.Dispose();
185185
this.deflateStream = null;
186186
}
187-
else {
188-
187+
else
188+
{
189189
// Hack: empty input?
190190
this.rawStream.WriteByte(3);
191191
this.rawStream.WriteByte(0);

src/ImageSharp/IO/EndianBinaryReader.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -575,8 +575,7 @@ private void ReadInternal(byte[] data, int size)
575575
int read = this.BaseStream.Read(data, index, size - index);
576576
if (read == 0)
577577
{
578-
throw new EndOfStreamException
579-
(
578+
throw new EndOfStreamException(
580579
string.Format(
581580
"End of stream reached with {0} byte{1} left to read.",
582581
size - index,

src/ImageSharp/Profiles/Exif/ExifReader.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,8 +361,7 @@ private void GetThumbnail(uint offset)
361361
}
362362
}
363363

364-
private static TDataType[] ToArray<TDataType>(ExifDataType dataType, byte[] data,
365-
ConverterMethod<TDataType> converter)
364+
private static TDataType[] ToArray<TDataType>(ExifDataType dataType, byte[] data, ConverterMethod<TDataType> converter)
366365
{
367366
int dataTypeSize = (int)ExifValue.GetSize(dataType);
368367
int length = data.Length / dataTypeSize;

src/ImageSharp/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
// Licensed under the Apache License, Version 2.0.
44
// </copyright>
55

6-
using System.Resources;
76
using System.Reflection;
7+
using System.Resources;
88
using System.Runtime.CompilerServices;
99

1010
// General Information about an assembly is controlled through the following

0 commit comments

Comments
 (0)