From cce21abaec22d24d0355c0e97e2e351546570839 Mon Sep 17 00:00:00 2001 From: Mikolaj Przybysz Date: Tue, 24 May 2016 12:17:57 +0200 Subject: [PATCH] Removed printing artifactVersion if it is not set --- .../swagger-codegen/src/main/resources/php/README.mustache | 4 ++-- .../src/main/resources/php/configuration.mustache | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/swagger-codegen/src/main/resources/php/README.mustache b/modules/swagger-codegen/src/main/resources/php/README.mustache index 1f96e378f1b..125f4212dd4 100644 --- a/modules/swagger-codegen/src/main/resources/php/README.mustache +++ b/modules/swagger-codegen/src/main/resources/php/README.mustache @@ -6,8 +6,8 @@ This PHP package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - API version: {{appVersion}} -- Package version: {{artifactVersion}} -- Build date: {{generatedDate}} +{{#artifactVersion}}- Package version: {{artifactVersion}} +{{/artifactVersion}}- Build date: {{generatedDate}} - Build package: {{generatorClass}} {{#infoUrl}} For more information, please visit [{{{infoUrl}}}]({{{infoUrl}}}) diff --git a/modules/swagger-codegen/src/main/resources/php/configuration.mustache b/modules/swagger-codegen/src/main/resources/php/configuration.mustache index 1b920e48357..57652c7a2a2 100644 --- a/modules/swagger-codegen/src/main/resources/php/configuration.mustache +++ b/modules/swagger-codegen/src/main/resources/php/configuration.mustache @@ -110,7 +110,7 @@ class Configuration * * @var string */ - protected $userAgent = "{{#httpUserAgent}}{{{.}}}{{/httpUserAgent}}{{^httpUserAgent}}Swagger-Codegen/{{{artifactVersion}}}/php{{/httpUserAgent}}"; + protected $userAgent = "{{#httpUserAgent}}{{{.}}}{{/httpUserAgent}}{{^httpUserAgent}}Swagger-Codegen{{#artifactVersion}}/{{{.}}}{{/artifactVersion}}/php{{/httpUserAgent}}"; /** * Debug switch (default set to false)