Skip to content

Commit

Permalink
Fixed CS
Browse files Browse the repository at this point in the history
  • Loading branch information
dragosprotung committed Mar 18, 2024
1 parent 8e9791c commit 2a13dad
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function supports(FormInterface $form): bool

return Psl\Iter\any(
$this->supportedFormTypes,
static fn (string $supportedFormType): bool => $resolvedFormType->getInnerType() instanceof $supportedFormType
static fn (string $supportedFormType): bool => $resolvedFormType->getInnerType() instanceof $supportedFormType,
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ private function getConstraintsForClassProperty(FormInterface $form): array
if ($parentMetadata->hasPropertyMetadata($propertyName)) {
return Psl\Vec\flat_map(
$parentMetadata->getPropertyMetadata($propertyName),
static fn (PropertyMetadataInterface $propertyMetadata) => $propertyMetadata->getConstraints()
static fn (PropertyMetadataInterface $propertyMetadata) => $propertyMetadata->getConstraints(),
);
}

Expand Down
4 changes: 2 additions & 2 deletions src/Describer/IOFieldDescriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ private function extractRequiredFields(IOField ...$fields): array
return Psl\Vec\map(
Psl\Vec\filter(
$fields,
static fn (IOField $child): bool => $child->isRequired()
static fn (IOField $child): bool => $child->isRequired(),
),
static fn (IOField $child): string => $child->name()
static fn (IOField $child): string => $child->name(),
);
}
}
2 changes: 1 addition & 1 deletion src/Describer/InputDescriber/FormInputDescriber/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ private function processParametersFromForm(FormInterface $form, NameResolver $na

return Psl\Vec\flat_map(
$form->all(),
fn (FormInterface $child) => $this->processParametersFromForm($child, $nameResolver)
fn (FormInterface $child) => $this->processParametersFromForm($child, $nameResolver),
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/Describer/ObjectDescriber/JMSModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ function (PropertyMetadata $metadataProperty): bool {
$metadataProperty,
$objectDescriber,
$serializationGroups,
)
),
);

if (count($propertiesSchemas) > 1) {
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Security/Reference.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public static function fromReferences(array $references): self
return new self(
Vec\map(
$references,
static fn (string $value): array => [$value => []]
static fn (string $value): array => [$value => []],
),
);
}
Expand Down

0 comments on commit 2a13dad

Please sign in to comment.