Skip to content

Commit a799dae

Browse files
author
Caitlin Bales (MSFT)
committed
Use sanitized property name
This fixes a manual change to conform to PSR-4. The class name must match the file name
1 parent 76df77a commit a799dae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/GraphODataTemplateWriter/PathWriters/PHPPathWriter.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ namespace Microsoft.Graph.ODataTemplateWriter.PathWriters
88
using Microsoft.Graph.ODataTemplateWriter.Extensions;
99
using Microsoft.Graph.ODataTemplateWriter.Settings;
1010
using Microsoft.Graph.ODataTemplateWriter.TemplateProcessor;
11+
using Microsoft.Graph.ODataTemplateWriter.CodeHelpers.PHP;
1112

1213
public class PHPPathWriter : PathWriterBase
1314
{
@@ -17,7 +18,7 @@ public override String WritePath(ITemplateInfo template, String entityTypeName)
1718
var theNamespace = this.CreateNamespace(template.TemplateType.ToString().ToUpperFirstChar());
1819
var namespacePath = this.CreatePathFromNamespace(theNamespace);
1920

20-
var fileName = Extensions.StringExtensions.ToCheckedCase(this.TransformFileName(template, entityTypeName));
21+
var fileName = Extensions.StringExtensions.ToCheckedCase(this.TransformFileName(template, TypeHelperPHP.SanitizeEntityName(entityTypeName)));
2122

2223
String filePath = Path.Combine(namespacePath, fileName);
2324
return filePath;

0 commit comments

Comments
 (0)