Skip to content

Commit

Permalink
Indent code
Browse files Browse the repository at this point in the history
  • Loading branch information
aloisdg committed May 9, 2015
1 parent 428bbb4 commit b2bc311
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 22 deletions.
4 changes: 2 additions & 2 deletions Counter/ADocument.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
internal abstract class ADocument : IDocument
{
public abstract DocumentType Type { get; }
public abstract uint Count { get; protected set; }
public abstract DocumentType Type { get; }
public abstract uint Count { get; protected set; }
}
}
14 changes: 7 additions & 7 deletions Counter/Document.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ namespace Counter
/// </summary>
public class Document
{
public DocumentType ExtensionType { get; private set; }
public string Extension { get; private set; }
public string FullName { get; private set; }
public string Name { get; private set; }
public string NameWithoutExtension { get; private set; }
public uint Count { get; private set; }
public DocumentType ExtensionType { get; private set; }
public string Extension { get; private set; }
public string FullName { get; private set; }
public string Name { get; private set; }
public string NameWithoutExtension { get; private set; }
public uint Count { get; private set; }

private readonly Dictionary<string, DocumentType> _extensionsSupported
= new Dictionary<string, DocumentType>
Expand All @@ -31,7 +31,7 @@ private readonly Dictionary<string, DocumentType> _extensionsSupported
public Document(string fullName)
{
FullName = fullName;
Name = Path.GetFileName(fullName);
Name = Path.GetFileName(fullName);
NameWithoutExtension = Path.GetFileNameWithoutExtension(fullName);
Extension = Path.GetExtension(fullName);
ExtensionType = IsSupported(Extension)
Expand Down
6 changes: 3 additions & 3 deletions Counter/Documents/Archives/Docx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ namespace Counter.Documents.Archives
{
internal sealed class Docx : AArchive
{
const string Path = "docProps/app.xml";
public override DocumentType Type { get { return DocumentType.Pdf; } }
public override uint Count { get; protected set; }
const string Path = "docProps/app.xml";
public override DocumentType Type { get { return DocumentType.Pdf; } }
public override uint Count { get; protected set; }

// a pptx or a docx is a zip
public Docx(Stream stream)
Expand Down
6 changes: 3 additions & 3 deletions Counter/Documents/Archives/Odt.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ namespace Counter.Documents.Archives
{
internal sealed class Odt : AArchive
{
const string Path = "meta.xml";
public override DocumentType Type { get { return DocumentType.Odt; } }
public override uint Count { get; protected set; }
const string Path = "meta.xml";
public override DocumentType Type { get { return DocumentType.Odt; } }
public override uint Count { get; protected set; }

public Odt(Stream stream)
{
Expand Down
5 changes: 2 additions & 3 deletions Counter/Documents/Pdf.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ namespace Counter.Documents
{
internal sealed class Pdf : ADocument
{
public override DocumentType Type { get { return DocumentType.Pdf; } }

public override uint Count { get; protected set; }
public override DocumentType Type { get { return DocumentType.Pdf; } }
public override uint Count { get; protected set; }

// faster than regex.
// so thread http://stackoverflow.com/q/320281/1248177
Expand Down
4 changes: 2 additions & 2 deletions Counter/IDocument.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
internal interface IDocument
{
DocumentType Type { get; }
uint Count { get; }
DocumentType Type { get; }
uint Count { get; }
}
}
4 changes: 2 additions & 2 deletions Counter/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.1.3.2")]
[assembly: AssemblyFileVersion("1.1.3.2")]
[assembly: AssemblyVersion("1.1.3.4")]
[assembly: AssemblyFileVersion("1.1.3.4")]

0 comments on commit b2bc311

Please sign in to comment.