[PHP] Improve code style of generated code

Avoid trailing whitespace.
This commit is contained in:
Arne Jørgensen 2016-05-25 22:51:40 +02:00
parent d9d3a41deb
commit 5c97d1b8f7
2 changed files with 10 additions and 1 deletions

View File

@ -167,6 +167,15 @@ public class PhpClientCodegen extends DefaultCodegen implements CodegenConfig {
.replaceAll(regLastPathSeparator+ "$", "");
}
@Override
public String escapeText(String input) {
if (input != null) {
// Trim the string to avoid leading and trailing spaces.
return super.escapeText(input).trim();
}
return input;
}
@Override
public CodegenType getTag() {
return CodegenType.CLIENT;