Skip to content

Commit 3056eda

Browse files
arrilotactions-user
authored andcommitted
Fix styling
1 parent d0e2a0c commit 3056eda

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/Generators/EnumsGenerator.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace Ensi\LaravelOpenApiServerGenerator\Generators;
44

55
use cebe\openapi\SpecObjectInterface;
6-
use Ensi\LaravelOpenApiServerGenerator\Utils\PhpDocGenerator;
76
use InvalidArgumentException;
87
use LogicException;
98
use stdClass;
@@ -50,7 +49,7 @@ private function extractEnums(stdClass $openApiData): array
5049

5150
private function getEnumType(stdClass $schema, string $enumName): string
5251
{
53-
return match($schema->type){
52+
return match ($schema->type) {
5453
"integer" => "int",
5554
"string" => "string",
5655
default => throw new LogicException("Enum {$enumName} has invalid type '{$schema->type}'. Supported types are: ['integer', 'string']"),
@@ -78,8 +77,8 @@ private function convertEnumSchemaToCases(stdClass $schema): string
7877

7978
private function convertEnumSchemaToPhpDoc(stdClass $schema): string
8079
{
81-
return $schema->description
82-
? "\n" . $this->phpDocGenerator->fromText(text: $schema->description, deleteEmptyLines: true)
80+
return $schema->description
81+
? "\n" . $this->phpDocGenerator->fromText(text: $schema->description, deleteEmptyLines: true)
8382
: "\n";
8483
}
8584
}

0 commit comments

Comments
 (0)