Skip to content

Commit 412fcf1

Browse files
committed
update file separator
1 parent e993d08 commit 412fcf1

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

modules/swagger-codegen/src/main/java/com/wordnik/swagger/codegen/languages/PhpClientCodegen.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,11 @@ public PhpClientCodegen() {
8383
typeMapping.put("array", "array");
8484
typeMapping.put("list", "array");
8585

86-
supportingFiles.add(new SupportingFile("composer.mustache", packagePath, "composer.json"));
87-
supportingFiles.add(new SupportingFile("configuration.mustache", packagePath + "/lib", "Configuration.php"));
88-
supportingFiles.add(new SupportingFile("ApiClient.mustache", packagePath + "/lib", "ApiClient.php"));
89-
supportingFiles.add(new SupportingFile("ApiException.mustache", packagePath + "/lib", "ApiException.php"));
90-
supportingFiles.add(new SupportingFile("require.mustache", packagePath, invokerPackage + ".php"));
86+
supportingFiles.add(new SupportingFile("composer.mustache", packagePath.replace('/', File.separatorChar), "composer.json"));
87+
supportingFiles.add(new SupportingFile("configuration.mustache", (packagePath + "/lib").replace('/', File.separatorChar), "Configuration.php"));
88+
supportingFiles.add(new SupportingFile("ApiClient.mustache", (packagePath + "/lib").replace('/', File.separatorChar), "ApiClient.php"));
89+
supportingFiles.add(new SupportingFile("ApiException.mustache", (packagePath + "/lib").replace('/', File.separatorChar), "ApiException.php"));
90+
supportingFiles.add(new SupportingFile("require.mustache", packagePath.replace('/', File.separatorChar), invokerPackage + ".php"));
9191
}
9292

9393
@Override
@@ -97,11 +97,11 @@ public String escapeReservedWord(String name) {
9797

9898
@Override
9999
public String apiFileFolder() {
100-
return outputFolder + "/" + apiPackage().replace('.', File.separatorChar);
100+
return (outputFolder + "/" + apiPackage()).replace('/', File.separatorChar);
101101
}
102102

103103
public String modelFileFolder() {
104-
return outputFolder + "/" + modelPackage().replace('.', File.separatorChar);
104+
return (outputFolder + "/" + modelPackage()).replace('/', File.separatorChar);
105105
}
106106

107107
@Override

0 commit comments

Comments
 (0)