From 37264b0bcf0ccfda34db9bfe459f17d2f5ce192d Mon Sep 17 00:00:00 2001 From: Mikolaj Przybysz Date: Tue, 24 May 2016 14:02:41 +0200 Subject: [PATCH] Removed printing artifactVersion if it is not set from debug information --- .../src/main/resources/php/configuration.mustache | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/swagger-codegen/src/main/resources/php/configuration.mustache b/modules/swagger-codegen/src/main/resources/php/configuration.mustache index b84b3ee9a0..a97358665e 100644 --- a/modules/swagger-codegen/src/main/resources/php/configuration.mustache +++ b/modules/swagger-codegen/src/main/resources/php/configuration.mustache @@ -95,7 +95,7 @@ class Configuration * * @var string */ - protected $userAgent = "{{#httpUserAgent}}{{{.}}}{{/httpUserAgent}}{{^httpUserAgent}}Swagger-Codegen{{#artifactVersion}}/{{{.}}}{{/artifactVersion}}/php{{/httpUserAgent}}"; + protected $userAgent = "{{#httpUserAgent}}{{{.}}}{{/httpUserAgent}}{{^httpUserAgent}}Swagger-Codegen/{{#artifactVersion}}{{{.}}}{{/artifactVersion}}{{^artifactVersion}}1.0.0{{/artifactVersion}}/php{{/httpUserAgent}}"; /** * Debug switch (default set to false) @@ -502,7 +502,9 @@ class Configuration $report .= " OS: ".php_uname().PHP_EOL; $report .= " PHP Version: ".phpversion().PHP_EOL; $report .= " OpenAPI Spec Version: {{version}}".PHP_EOL; + {{#artifactVersion}} $report .= " SDK Package Version: {{artifactVersion}}".PHP_EOL; + {{/artifactVersion}} $report .= " Temp Folder Path: ".self::getDefaultConfiguration()->getTempFolderPath().PHP_EOL; return $report;