From 2a13dadc3b2ef4e9cc66f30fa4b3aae91092de6a Mon Sep 17 00:00:00 2001 From: Dragos Protung Date: Mon, 18 Mar 2024 09:34:22 +0100 Subject: [PATCH] Fixed CS --- .../Form/PropertyDescriber/DictionaryPropertyDescriber.php | 2 +- src/Describer/Form/SymfonyValidatorRequirementsDescriber.php | 2 +- src/Describer/IOFieldDescriber.php | 4 ++-- src/Describer/InputDescriber/FormInputDescriber/Query.php | 2 +- src/Describer/ObjectDescriber/JMSModel.php | 2 +- src/Model/Security/Reference.php | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Describer/Form/PropertyDescriber/DictionaryPropertyDescriber.php b/src/Describer/Form/PropertyDescriber/DictionaryPropertyDescriber.php index bcc0ab8..7608e3e 100644 --- a/src/Describer/Form/PropertyDescriber/DictionaryPropertyDescriber.php +++ b/src/Describer/Form/PropertyDescriber/DictionaryPropertyDescriber.php @@ -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, ); } diff --git a/src/Describer/Form/SymfonyValidatorRequirementsDescriber.php b/src/Describer/Form/SymfonyValidatorRequirementsDescriber.php index 63cbc2b..484cd52 100644 --- a/src/Describer/Form/SymfonyValidatorRequirementsDescriber.php +++ b/src/Describer/Form/SymfonyValidatorRequirementsDescriber.php @@ -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(), ); } diff --git a/src/Describer/IOFieldDescriber.php b/src/Describer/IOFieldDescriber.php index e51ee8a..f33bde7 100644 --- a/src/Describer/IOFieldDescriber.php +++ b/src/Describer/IOFieldDescriber.php @@ -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(), ); } } diff --git a/src/Describer/InputDescriber/FormInputDescriber/Query.php b/src/Describer/InputDescriber/FormInputDescriber/Query.php index d15c45b..69785a2 100644 --- a/src/Describer/InputDescriber/FormInputDescriber/Query.php +++ b/src/Describer/InputDescriber/FormInputDescriber/Query.php @@ -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), ); } diff --git a/src/Describer/ObjectDescriber/JMSModel.php b/src/Describer/ObjectDescriber/JMSModel.php index 465d623..5787e7d 100644 --- a/src/Describer/ObjectDescriber/JMSModel.php +++ b/src/Describer/ObjectDescriber/JMSModel.php @@ -134,7 +134,7 @@ function (PropertyMetadata $metadataProperty): bool { $metadataProperty, $objectDescriber, $serializationGroups, - ) + ), ); if (count($propertiesSchemas) > 1) { diff --git a/src/Model/Security/Reference.php b/src/Model/Security/Reference.php index cfa0373..800ccde 100644 --- a/src/Model/Security/Reference.php +++ b/src/Model/Security/Reference.php @@ -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 => []], ), ); }