forked from loafle/openapi-generator-original
[PHP] Improve code style of generated code
Avoid trailing whitespace.
This commit is contained in:
parent
d9d3a41deb
commit
5c97d1b8f7
@ -167,6 +167,15 @@ public class PhpClientCodegen extends DefaultCodegen implements CodegenConfig {
|
|||||||
.replaceAll(regLastPathSeparator+ "$", "");
|
.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
|
@Override
|
||||||
public CodegenType getTag() {
|
public CodegenType getTag() {
|
||||||
return CodegenType.CLIENT;
|
return CodegenType.CLIENT;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user