@@ -208,7 +208,7 @@ public function getTypeName(array $parameter, array $method = []): string
208
208
protected function populateGenerics (string $ model , array $ spec , array &$ generics , bool $ skipFirst = false )
209
209
{
210
210
if (!$ skipFirst && $ spec ['definitions ' ][$ model ]['additionalProperties ' ]) {
211
- $ generics [] = $ this ->toUpperCase ($ model );
211
+ $ generics [] = $ this ->toUpperCaseWords ($ model );
212
212
}
213
213
214
214
$ properties = $ spec ['definitions ' ][$ model ]['properties ' ];
@@ -257,14 +257,14 @@ public function getReturn(array $method, array $spec): string
257
257
$ ret .= 'Models. ' ;
258
258
}
259
259
260
- $ ret .= $ this ->toUpperCase ($ method ['responseModel ' ]);
260
+ $ ret .= $ this ->toUpperCaseWords ($ method ['responseModel ' ]);
261
261
262
262
$ models = [];
263
263
264
264
$ this ->populateGenerics ($ method ['responseModel ' ], $ spec , $ models );
265
265
266
266
$ models = array_unique ($ models );
267
- $ models = array_filter ($ models , fn ($ model ) => $ model != $ this ->toUpperCase ($ method ['responseModel ' ]));
267
+ $ models = array_filter ($ models , fn ($ model ) => $ model != $ this ->toUpperCaseWords ($ method ['responseModel ' ]));
268
268
269
269
if (!empty ($ models )) {
270
270
$ ret .= '< ' . implode (', ' , $ models ) . '> ' ;
@@ -284,9 +284,9 @@ public function getSubSchema(array $property, array $spec): string
284
284
$ generics = [];
285
285
$ this ->populateGenerics ($ property ['sub_schema ' ], $ spec , $ generics );
286
286
287
- $ generics = array_filter ($ generics , fn ($ model ) => $ model != $ this ->toUpperCase ($ property ['sub_schema ' ]));
287
+ $ generics = array_filter ($ generics , fn ($ model ) => $ model != $ this ->toUpperCaseWords ($ property ['sub_schema ' ]));
288
288
289
- $ ret .= $ this ->toUpperCase ($ property ['sub_schema ' ]);
289
+ $ ret .= $ this ->toUpperCaseWords ($ property ['sub_schema ' ]);
290
290
if (!empty ($ generics )) {
291
291
$ ret .= '< ' . implode (', ' , $ generics ) . '> ' ;
292
292
}
0 commit comments