Skip to content

Commit 6dc30f0

Browse files
committed
fmt
1 parent 0d2b3fe commit 6dc30f0

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

src/Codegen/Codegen.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ private function __construct(private dict<arraykey, mixed> $schema, private self
145145
$this->getJsonSchemaCodegenConfig(),
146146
$this->schema,
147147
$this->class->getName(),
148-
$this->file
148+
$this->file,
149149
);
150150
$typed_schema = type_assert_type($this->schema, TSchema::class);
151151
$this->builder = new SchemaBuilder($context, '', $typed_schema, $this->class);

src/Codegen/Constraints/ArrayBuilder.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,10 +264,7 @@ private function setupSingleItemSchemaBuilder(): void {
264264
* Determine the type of hack array we will generate.
265265
*/
266266
private function determineHackArrayType(): void {
267-
if (
268-
Shapes::idx($this->typed_schema, 'uniqueItems') &&
269-
$this->singleItemSchemaBuilder?->isArrayKeyType()
270-
) {
267+
if (Shapes::idx($this->typed_schema, 'uniqueItems') && $this->singleItemSchemaBuilder?->isArrayKeyType()) {
271268
$this->hackArrayType = HackArrayType::KEYSET;
272269
}
273270
}

src/Codegen/Constraints/UniqueRefBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function build(): this {
7070
$this->cached_ref = shape(
7171
'type' => $codegen->getType(),
7272
'classname' => $codegen->getClassName(),
73-
'isArrayKeyType' => $codegen->isArrayKeyType()
73+
'isArrayKeyType' => $codegen->isArrayKeyType(),
7474
);
7575
RefCache::cacheRef($this->filename, $this->cached_ref);
7676
}

src/Codegen/RefCache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ final class RefCache {
88
const type TCachedRef = shape(
99
'type' => string,
1010
'classname' => string,
11-
'isArrayKeyType' => bool
11+
'isArrayKeyType' => bool,
1212
);
1313

1414
static private dict<string, self::TCachedRef> $generatedRefs = dict[];

0 commit comments

Comments
 (0)