From 5634d72d6f64c7d2ba366b28522282f6fe285e1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Thu, 30 Oct 2025 00:42:35 +0100 Subject: [PATCH] fix cs --- .../Controller/ActivityReasonCategoryController.php | 2 -- .../Controller/CustomFieldsGroupController.php | 2 +- .../Serializer/Normalizer/PersonJsonNormalizer.php | 6 +++--- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/Bundle/ChillActivityBundle/Controller/ActivityReasonCategoryController.php b/src/Bundle/ChillActivityBundle/Controller/ActivityReasonCategoryController.php index 1f96638f2..5553ed5c7 100644 --- a/src/Bundle/ChillActivityBundle/Controller/ActivityReasonCategoryController.php +++ b/src/Bundle/ChillActivityBundle/Controller/ActivityReasonCategoryController.php @@ -112,7 +112,6 @@ class ActivityReasonCategoryController extends AbstractController * Creates a form to create a ActivityReasonCategory entity. * * @param ActivityReasonCategory $entity The entity - * */ private function createCreateForm(ActivityReasonCategory $entity): FormInterface { @@ -130,7 +129,6 @@ class ActivityReasonCategoryController extends AbstractController * Creates a form to edit a ActivityReasonCategory entity. * * @param ActivityReasonCategory $entity The entity - * */ private function createEditForm(ActivityReasonCategory $entity): FormInterface { diff --git a/src/Bundle/ChillCustomFieldsBundle/Controller/CustomFieldsGroupController.php b/src/Bundle/ChillCustomFieldsBundle/Controller/CustomFieldsGroupController.php index f4d780f4a..5bb310ea0 100644 --- a/src/Bundle/ChillCustomFieldsBundle/Controller/CustomFieldsGroupController.php +++ b/src/Bundle/ChillCustomFieldsBundle/Controller/CustomFieldsGroupController.php @@ -321,7 +321,7 @@ class CustomFieldsGroupController extends AbstractController * * @param CustomFieldsGroup $entity The entity * - * @return \Symfony\Component\Form\FormInterface The form + * @return FormInterface The form */ private function createCreateForm(CustomFieldsGroup $entity) { diff --git a/src/Bundle/ChillPersonBundle/Serializer/Normalizer/PersonJsonNormalizer.php b/src/Bundle/ChillPersonBundle/Serializer/Normalizer/PersonJsonNormalizer.php index 260f43c44..fbf1c832c 100644 --- a/src/Bundle/ChillPersonBundle/Serializer/Normalizer/PersonJsonNormalizer.php +++ b/src/Bundle/ChillPersonBundle/Serializer/Normalizer/PersonJsonNormalizer.php @@ -218,12 +218,12 @@ class PersonJsonNormalizer implements DenormalizerAwareInterface, NormalizerAwar $context ), 'altNames' => $this->normalizeAltNames($person->getAltNames()), - 'current_household_id' => $household !== null ? + 'current_household_id' => null !== $household ? $this->normalizer->normalize($household->getId(), $format, $context) : null, - 'current_residential_addresses' => $currentResidentialAddresses !== [] ? + 'current_residential_addresses' => [] !== $currentResidentialAddresses ? $this->normalizer->normalize($currentResidentialAddresses, $format, $context) : - null + null, ]; }