From 530297bc671cebb1d84a0a10a88763ea2bfdeb92 Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Fri, 25 Feb 2022 13:59:05 +0100 Subject: [PATCH] csfixes --- .../Serializer/Normalizer/ThirdPartyNormalizer.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/Bundle/ChillThirdPartyBundle/Serializer/Normalizer/ThirdPartyNormalizer.php b/src/Bundle/ChillThirdPartyBundle/Serializer/Normalizer/ThirdPartyNormalizer.php index e1eae4940..44f8178eb 100644 --- a/src/Bundle/ChillThirdPartyBundle/Serializer/Normalizer/ThirdPartyNormalizer.php +++ b/src/Bundle/ChillThirdPartyBundle/Serializer/Normalizer/ThirdPartyNormalizer.php @@ -11,7 +11,6 @@ declare(strict_types=1); namespace Chill\ThirdPartyBundle\Serializer\Normalizer; -use Chill\MainBundle\Templating\TranslatableStringHelper; use Chill\MainBundle\Templating\TranslatableStringHelperInterface; use Chill\ThirdPartyBundle\Entity\ThirdParty; use Chill\ThirdPartyBundle\Entity\ThirdPartyCategory; @@ -53,12 +52,12 @@ class ThirdPartyNormalizer implements NormalizerAwareInterface, NormalizerInterf 'text' => $this->translatableStringHelper->localize($el->getName()), 'type' => 'thirdparty_category', ]; - } else { - return [ - 'text' => $el, - 'type' => 'thirdparty_kind', - ]; } + + return [ + 'text' => $el, + 'type' => 'thirdparty_kind', + ]; }, $thirdParty->getTypesAndCategories()), 'profession' => $this->normalizer->normalize($thirdParty->getProfession(), $format, $context), 'address' => $this->normalizer->normalize($thirdParty->getAddress(), $format, ['address_rendering' => 'short']),