1
0
Fork 0
mirror of synced 2024-10-01 01:37:56 +13:00

chore: linter

This commit is contained in:
Torsten Dittmann 2022-06-30 01:46:04 +02:00
parent 5668ad01d5
commit 3e1a92f486

View file

@ -206,7 +206,7 @@ $cli
// var_dump($models);
$arguments = [new App('UTC'), $services, $routes, $models, $keys[$platform], $authCounts[$platform] ?? 0];
foreach (['swagger2', 'open-api3'] as $format) {
$formatInstance = match($format) {
$formatInstance = match ($format) {
'swagger2' => new Swagger2(...$arguments),
'open-api3' => new OpenAPI3(...$arguments),
default => throw new Exception('Format not found: ' . $format)