Skip to content

Commit

Permalink
fix: Changes to improve code quality
Browse files Browse the repository at this point in the history
  • Loading branch information
nikcio committed Feb 6, 2022
1 parent bf71f8b commit 03db2cb
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace Nikcio.UHeadless.UmbracoContent.Properties.Bases.Models
{
public abstract class PropertyValueBaseGraphType
{
public PropertyValueBaseGraphType(CreatePropertyValue _)
protected PropertyValueBaseGraphType(CreatePropertyValue _)
{
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace Nikcio.UHeadless.UmbracoContent.Properties.EditorsValues.BlockList.Mod
{
public abstract class BlockListItemBaseGraphType
{
public BlockListItemBaseGraphType(CreateBlockListItem _)
protected BlockListItemBaseGraphType(CreateBlockListItem _)
{
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public BlockListModelGraphType(CreatePropertyValue createPropertyValue, IDepende
{
var propertyTypeAssemblyQualifiedName = typeof(T).AssemblyQualifiedName;
var type = Type.GetType(propertyTypeAssemblyQualifiedName);
return dependencyReflectorFactory.GetReflectedType<T>(type, new object[1] { new CreateBlockListItem(createPropertyValue.Content, blockListItem, createPropertyValue.Culture) });
return dependencyReflectorFactory.GetReflectedType<T>(type, new object[] { new CreateBlockListItem(createPropertyValue.Content, blockListItem, createPropertyValue.Culture) });
}).ToList();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace Nikcio.UHeadless.UmbracoContent.Properties.EditorsValues.NestedContent
{
public abstract class ElementBaseGraphType
{
public ElementBaseGraphType(CreateElement _)
protected ElementBaseGraphType(CreateElement _)
{
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public NestedContentGraphType(CreatePropertyValue createPropertyValue, IDependen
{
var propertyTypeAssemblyQualifiedName = typeof(T).AssemblyQualifiedName;
var type = Type.GetType(propertyTypeAssemblyQualifiedName);
return dependencyReflectorFactory.GetReflectedType<T>(type, new object[1] { new CreateElement(createPropertyValue.Content, element, createPropertyValue.Culture) });
return dependencyReflectorFactory.GetReflectedType<T>(type, new object[] { new CreateElement(createPropertyValue.Content, element, createPropertyValue.Culture) });
}).ToList();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public PropertyValueBaseGraphType GetPropertyValue(CreatePropertyValue createPro
propertyTypeAssemblyQualifiedName = propertyMap.GetEditorValue(PropertyConstants.DefaultKey);
}
var type = Type.GetType(propertyTypeAssemblyQualifiedName);
return dependencyReflectorFactory.GetReflectedType<PropertyValueBaseGraphType>(type, new object[1] { createPropertyValue });
return dependencyReflectorFactory.GetReflectedType<PropertyValueBaseGraphType>(type, new object[] { createPropertyValue });
}
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace Nikcio.UHeadless.UmbracoContent.Properties.UConstants
{
public class PropertyConstants
public static class PropertyConstants
{
public const string DefaultKey = "Default";
public static readonly string DefaultKey = "Default";
}
}

0 comments on commit 03db2cb

Please sign in to comment.