diff --git a/src/Bundle/ChillMainBundle/Form/Type/PickCivilityType.php b/src/Bundle/ChillMainBundle/Form/Type/PickCivilityType.php index 592c14242..0381bfd0d 100644 --- a/src/Bundle/ChillMainBundle/Form/Type/PickCivilityType.php +++ b/src/Bundle/ChillMainBundle/Form/Type/PickCivilityType.php @@ -35,16 +35,16 @@ class PickCivilityType extends AbstractType ->setDefault( 'choice_label', function (Civility $civility): string { - return $this->translatableStringHelper->localize($civility->getName()); - } + return $this->translatableStringHelper->localize($civility->getName()); + } ) ->setDefault( 'query_builder', static function (EntityRepository $er): QueryBuilder { - return $er->createQueryBuilder('c') - ->where('c.active = true') - ->orderBy('c.order'); - }, + return $er->createQueryBuilder('c') + ->where('c.active = true') + ->orderBy('c.order'); + }, ) ->setDefault('placeholder', 'choose civility') ->setDefault('class', Civility::class); diff --git a/src/Bundle/ChillThirdPartyBundle/Entity/ThirdParty.php b/src/Bundle/ChillThirdPartyBundle/Entity/ThirdParty.php index e8f7e292f..593d1c14c 100644 --- a/src/Bundle/ChillThirdPartyBundle/Entity/ThirdParty.php +++ b/src/Bundle/ChillThirdPartyBundle/Entity/ThirdParty.php @@ -69,12 +69,13 @@ use function spl_object_hash; * Categories are managed in the database. The Chill administrator may create or desactivate categories. * * Types are also a way to categorize the thirdparties, but this is done **into the code**, through - * @link{Chill\ThirdPartyBundle\ThirdPartyType\ThirdPartyTypeProviderInterface}. The type is stored into the + * + * @see{Chill\ThirdPartyBundle\ThirdPartyType\ThirdPartyTypeProviderInterface}. The type is stored into the * database by a Php array, mapped by a jsonb into the database. This has one advantage: it is easily searchable. * * As the list of type is hardcoded into database, it is more easily searchable. (for chill 2.0, the - * @link{Chill\ThirdPartyBundle\Form\Type\PickThirdPartyDynamicType} does not support it yet, but - * the legacy @link{Chill\ThirdPartyBundle\Form\Type\PickThirdPartyType} does. + * @see{Chill\ThirdPartyBundle\Form\Type\PickThirdPartyDynamicType} does not support it yet, but + * the legacy @see{Chill\ThirdPartyBundle\Form\Type\PickThirdPartyType} does. * * The difference between categories and types is transparent for user: they choose the same fields into the UI, without * noticing a difference.