fix order and update of user settings form

This commit is contained in:
Kevin Papst
2020-08-18 23:22:16 +02:00
parent fbb3dd89cf
commit d8ae7635d1
7 changed files with 74 additions and 89 deletions

View File

@@ -34,10 +34,6 @@ class UserPreferenceType extends AbstractType
$this->translate = $translator;
}
/**
* @param FormBuilderInterface $builder
* @param array $options
*/
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder->addEventListener(
@@ -56,7 +52,7 @@ class UserPreferenceType extends AbstractType
}
$required = true;
if (CheckboxType::class == $preference->getType()) {
if (CheckboxType::class === $preference->getType()) {
$required = false;
}