File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/main/java/io/swagger/codegen/v3/generators/php Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ public PhpClientCodegen() {
110
110
111
111
instantiationTypes .put ("array" , "array" );
112
112
instantiationTypes .put ("map" , "map" );
113
-
113
+
114
114
// provide primitives to mustache template
115
115
List <String > sortedLanguageSpecificPrimitives = new ArrayList <String >(languageSpecificPrimitives );
116
116
Collections .sort (sortedLanguageSpecificPrimitives );
@@ -295,10 +295,10 @@ public void processOpts() {
295
295
if (additionalProperties .containsKey (VARIABLE_NAMING_CONVENTION )) {
296
296
this .setParameterNamingConvention ((String ) additionalProperties .get (VARIABLE_NAMING_CONVENTION ));
297
297
}
298
- if (StringUtils .isBlank (composerVendorName )) {
298
+ if (StringUtils .isBlank (composerVendorName ) && additionalProperties . get ( CodegenConstants . GIT_USER_ID ) != null ) {
299
299
additionalProperties .put (CodegenConstants .GIT_USER_ID , StringUtils .lowerCase (additionalProperties .get (CodegenConstants .GIT_USER_ID ).toString ()));
300
300
}
301
- if (StringUtils .isBlank (composerProjectName )) {
301
+ if (StringUtils .isBlank (composerProjectName ) && additionalProperties . get ( CodegenConstants . GIT_REPO_ID ) != null ) {
302
302
additionalProperties .put (CodegenConstants .GIT_REPO_ID , StringUtils .lowerCase (additionalProperties .get (CodegenConstants .GIT_REPO_ID ).toString ()));
303
303
}
304
304
You can’t perform that action at this time.
0 commit comments