We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 775437f commit 19d5c36Copy full SHA for 19d5c36
src/lib/items/DbModel.php
@@ -233,7 +233,7 @@ private function getScenariosByOpenapiSchema(): array
233
});
234
235
foreach ($scenarios as $key => $scenario) {
236
- $scenarios[$key]['const'] = 'SCENARIO_' . strtoupper($scenario['name']);
+ $scenarios[$key]['const'] = 'SCENARIO_' . strtoupper(implode('_', preg_split('/(?=[A-Z])/', $scenario['name'])));
237
$scenarios[$key]['description'] = FormatHelper::getFormattedDescription(
238
!empty($scenario['description']) ?
239
$scenario['description']
0 commit comments