Skip to content

Commit

Permalink
Whitespace formatting in the Constants classes
Browse files Browse the repository at this point in the history
Also removed unused namespaces.
  • Loading branch information
leekelleher committed Mar 29, 2019
1 parent 533d2cf commit 0a687ab
Show file tree
Hide file tree
Showing 11 changed files with 66 additions and 86 deletions.
1 change: 0 additions & 1 deletion src/Umbraco.Core/Constants-AppSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ public static class AppSettings
/// </summary>
public const string DisableElectionForSingleServer = "Umbraco.Core.DisableElectionForSingleServer";


/// <summary>
/// Debug specific web.config AppSetting keys for Umbraco
/// </summary>
Expand Down
4 changes: 2 additions & 2 deletions src/Umbraco.Core/Constants-Applications.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,11 @@ public static class Trees

public const string PartialViewMacros = "partialViewMacros";

public const string LogViewer = "logViewer";
public const string LogViewer = "logViewer";

public static class Groups
{
public const string Settings = "settingsGroup";
public const string Settings = "settingsGroup";

public const string Templating = "templatingGroup";

Expand Down
116 changes: 58 additions & 58 deletions src/Umbraco.Core/Constants-Conventions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ public static class Media
/// </summary>
public const string Extension = "umbracoExtension";

/// <summary>
/// The default height/width of an image file if the size can't be determined from the metadata
/// </summary>
public const int DefaultSize = 200;
/// <summary>
/// The default height/width of an image file if the size can't be determined from the metadata
/// </summary>
public const int DefaultSize = 200;
}

/// <summary>
Expand Down Expand Up @@ -209,71 +209,71 @@ public static class Member
public static Dictionary<string, PropertyType> GetStandardPropertyTypeStubs()
{
return new Dictionary<string, PropertyType>
{
{
Comments,
new PropertyType(PropertyEditors.Aliases.TextArea, ValueStorageType.Ntext, true, Comments)
{
Comments,
new PropertyType(PropertyEditors.Aliases.TextArea, ValueStorageType.Ntext, true, Comments)
{
Name = CommentsLabel
}
},
Name = CommentsLabel
}
},
{
FailedPasswordAttempts,
new PropertyType(PropertyEditors.Aliases.Label, ValueStorageType.Integer, true, FailedPasswordAttempts)
{
FailedPasswordAttempts,
new PropertyType(PropertyEditors.Aliases.Label, ValueStorageType.Integer, true, FailedPasswordAttempts)
{
Name = FailedPasswordAttemptsLabel
}
},
Name = FailedPasswordAttemptsLabel
}
},
{
IsApproved,
new PropertyType(PropertyEditors.Aliases.Boolean, ValueStorageType.Integer, true, IsApproved)
{
IsApproved,
new PropertyType(PropertyEditors.Aliases.Boolean, ValueStorageType.Integer, true, IsApproved)
{
Name = IsApprovedLabel
}
},
Name = IsApprovedLabel
}
},
{
IsLockedOut,
new PropertyType(PropertyEditors.Aliases.Boolean, ValueStorageType.Integer, true, IsLockedOut)
{
IsLockedOut,
new PropertyType(PropertyEditors.Aliases.Boolean, ValueStorageType.Integer, true, IsLockedOut)
{
Name = IsLockedOutLabel
}
},
Name = IsLockedOutLabel
}
},
{
LastLockoutDate,
new PropertyType(PropertyEditors.Aliases.Label, ValueStorageType.Date, true, LastLockoutDate)
{
LastLockoutDate,
new PropertyType(PropertyEditors.Aliases.Label, ValueStorageType.Date, true, LastLockoutDate)
{
Name = LastLockoutDateLabel
}
},
Name = LastLockoutDateLabel
}
},
{
LastLoginDate,
new PropertyType(PropertyEditors.Aliases.Label, ValueStorageType.Date, true, LastLoginDate)
{
LastLoginDate,
new PropertyType(PropertyEditors.Aliases.Label, ValueStorageType.Date, true, LastLoginDate)
{
Name = LastLoginDateLabel
}
},
Name = LastLoginDateLabel
}
},
{
LastPasswordChangeDate,
new PropertyType(PropertyEditors.Aliases.Label, ValueStorageType.Date, true, LastPasswordChangeDate)
{
LastPasswordChangeDate,
new PropertyType(PropertyEditors.Aliases.Label, ValueStorageType.Date, true, LastPasswordChangeDate)
{
Name = LastPasswordChangeDateLabel
}
},
Name = LastPasswordChangeDateLabel
}
},
{
PasswordAnswer,
new PropertyType(PropertyEditors.Aliases.Label, ValueStorageType.Nvarchar, true, PasswordAnswer)
{
PasswordAnswer,
new PropertyType(PropertyEditors.Aliases.Label, ValueStorageType.Nvarchar, true, PasswordAnswer)
{
Name = PasswordAnswerLabel
}
},
Name = PasswordAnswerLabel
}
},
{
PasswordQuestion,
new PropertyType(PropertyEditors.Aliases.Label, ValueStorageType.Nvarchar, true, PasswordQuestion)
{
PasswordQuestion,
new PropertyType(PropertyEditors.Aliases.Label, ValueStorageType.Nvarchar, true, PasswordQuestion)
{
Name = PasswordQuestionLabel
}
Name = PasswordQuestionLabel
}
};
}
};
}
}

Expand Down
12 changes: 1 addition & 11 deletions src/Umbraco.Core/Constants-Icons.cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Umbraco.Core
namespace Umbraco.Core
{
public static partial class Constants
{
public static class Icons
{


/// <summary>
/// System contenttype icon
/// </summary>
Expand Down Expand Up @@ -42,12 +34,10 @@ public static class Icons
/// </summary>
public const string MemberType = "icon-users";


/// <summary>
/// System member icon
/// </summary>
public const string Template = "icon-layout";

}
}
}
5 changes: 1 addition & 4 deletions src/Umbraco.Core/Constants-Indexes.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.ComponentModel;

namespace Umbraco.Core
namespace Umbraco.Core
{
public static partial class Constants
{
Expand Down
1 change: 0 additions & 1 deletion src/Umbraco.Core/Constants-ObjectTypes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ public static class Strings
public static readonly Guid Template = new Guid(Strings.Template);

public static readonly Guid ContentItem = new Guid(Strings.ContentItem);

}
}
}
2 changes: 1 addition & 1 deletion src/Umbraco.Core/Constants-PackageRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
public static partial class Constants
{
/// <summary>
/// Defines the constants used for the Umbraco package repository
/// Defines the constants used for the Umbraco package repository
/// </summary>
public static class PackageRepository
{
Expand Down
1 change: 0 additions & 1 deletion src/Umbraco.Core/Constants-PropertyEditors.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ public static class Aliases
/// </summary>
public const string ContentPicker = "Umbraco.ContentPicker";


/// <summary>
/// DateTime.
/// </summary>
Expand Down
6 changes: 1 addition & 5 deletions src/Umbraco.Core/Constants-Web.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.ComponentModel;

namespace Umbraco.Core
namespace Umbraco.Core
{
public static partial class Constants
{
Expand All @@ -22,7 +19,6 @@ public static class Web
public const string PreviewCookieName = "UMB_PREVIEW";

public const string InstallerCookieName = "umb_installId";

}
}
}
2 changes: 1 addition & 1 deletion src/Umbraco.Core/Persistence/Constants-DatabaseSchema.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public static class Tables

public const string Tag = /*TableNamePrefix*/ "cms" + "Tags";
public const string TagRelationship = /*TableNamePrefix*/ "cms" + "TagRelationship";

public const string KeyValue = TableNamePrefix + "KeyValue";

public const string AuditEntry = TableNamePrefix + "Audit";
Expand Down
2 changes: 1 addition & 1 deletion src/Umbraco.Core/UdiEntityType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public static class UdiEntityType

internal static Dictionary<string, UdiType> GetTypes()
{
return new Dictionary<string,UdiType>
return new Dictionary<string, UdiType>
{
{ Unknown, UdiType.Unknown },

Expand Down

0 comments on commit 0a687ab

Please sign in to comment.