Removed printing artifactVersion if it is not set from debug information

This commit is contained in:
Mikolaj Przybysz 2016-05-24 14:02:41 +02:00
parent ce2e994306
commit 37264b0bcf

View File

@ -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;