mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-10-02 03:19:43 +00:00
DX: rector rules upt to PHP 74
This commit is contained in:
@@ -46,9 +46,7 @@ class GoalType extends AbstractType
|
||||
'class' => Result::class,
|
||||
'required' => false,
|
||||
'multiple' => true,
|
||||
'choice_label' => function (Result $r) {
|
||||
return $this->translatableStringHelper->localize($r->getTitle());
|
||||
},
|
||||
'choice_label' => fn(Result $r) => $this->translatableStringHelper->localize($r->getTitle()),
|
||||
'attr' => ['class' => 'select2 '],
|
||||
])
|
||||
->add('desactivationDate', ChillDateType::class, [
|
||||
|
@@ -50,16 +50,12 @@ class SocialActionType extends AbstractType
|
||||
->add('issue', EntityType::class, [
|
||||
'class' => SocialIssue::class,
|
||||
'label' => 'socialAction.socialIssue',
|
||||
'choice_label' => function (SocialIssue $issue) {
|
||||
return $this->translatableStringHelper->localize($issue->getTitle());
|
||||
},
|
||||
'choice_label' => fn(SocialIssue $issue) => $this->translatableStringHelper->localize($issue->getTitle()),
|
||||
])
|
||||
->add('parent', EntityType::class, [
|
||||
'class' => SocialAction::class,
|
||||
'required' => false,
|
||||
'choice_label' => function (SocialAction $issue) {
|
||||
return $this->translatableStringHelper->localize($issue->getTitle());
|
||||
},
|
||||
'choice_label' => fn(SocialAction $issue) => $this->translatableStringHelper->localize($issue->getTitle()),
|
||||
])
|
||||
->add('ordering', NumberType::class, [
|
||||
'required' => true,
|
||||
@@ -70,9 +66,7 @@ class SocialActionType extends AbstractType
|
||||
'required' => false,
|
||||
'multiple' => true,
|
||||
'attr' => ['class' => 'select2'],
|
||||
'choice_label' => function (Result $r) {
|
||||
return $this->translatableStringHelper->localize($r->getTitle());
|
||||
},
|
||||
'choice_label' => fn(Result $r) => $this->translatableStringHelper->localize($r->getTitle()),
|
||||
])
|
||||
|
||||
->add('goals', EntityType::class, [
|
||||
@@ -80,9 +74,7 @@ class SocialActionType extends AbstractType
|
||||
'required' => false,
|
||||
'multiple' => true,
|
||||
'attr' => ['class' => 'select2'],
|
||||
'choice_label' => function (Goal $g) {
|
||||
return $this->translatableStringHelper->localize($g->getTitle());
|
||||
},
|
||||
'choice_label' => fn(Goal $g) => $this->translatableStringHelper->localize($g->getTitle()),
|
||||
])
|
||||
|
||||
->add('evaluations', EntityType::class, [
|
||||
@@ -90,9 +82,7 @@ class SocialActionType extends AbstractType
|
||||
'required' => false,
|
||||
'multiple' => true,
|
||||
'attr' => ['class' => 'select2'],
|
||||
'choice_label' => function (Evaluation $e) {
|
||||
return $this->translatableStringHelper->localize($e->getTitle());
|
||||
},
|
||||
'choice_label' => fn(Evaluation $e) => $this->translatableStringHelper->localize($e->getTitle()),
|
||||
])
|
||||
|
||||
->add('defaultNotificationDelay', DateIntervalType::class, [
|
||||
|
Reference in New Issue
Block a user