aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Form/Type/UserInformationType.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/CoreBundle/Form/Type/UserInformationType.php')
-rw-r--r--src/Wallabag/CoreBundle/Form/Type/UserInformationType.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/Wallabag/CoreBundle/Form/Type/UserInformationType.php b/src/Wallabag/CoreBundle/Form/Type/UserInformationType.php
index 799ea39e..07c99949 100644
--- a/src/Wallabag/CoreBundle/Form/Type/UserInformationType.php
+++ b/src/Wallabag/CoreBundle/Form/Type/UserInformationType.php
@@ -15,19 +15,19 @@ class UserInformationType extends AbstractType
15 public function buildForm(FormBuilderInterface $builder, array $options) 15 public function buildForm(FormBuilderInterface $builder, array $options)
16 { 16 {
17 $builder 17 $builder
18 ->add('name', TextType::class, array( 18 ->add('name', TextType::class, [
19 'label' => 'config.form_user.name_label', 19 'label' => 'config.form_user.name_label',
20 )) 20 ])
21 ->add('email', EmailType::class, array( 21 ->add('email', EmailType::class, [
22 'label' => 'config.form_user.email_label', 22 'label' => 'config.form_user.email_label',
23 )) 23 ])
24 ->add('twoFactorAuthentication', CheckboxType::class, array( 24 ->add('twoFactorAuthentication', CheckboxType::class, [
25 'required' => false, 25 'required' => false,
26 'label' => 'config.form_user.twoFactorAuthentication_label', 26 'label' => 'config.form_user.twoFactorAuthentication_label',
27 )) 27 ])
28 ->add('save', SubmitType::class, array( 28 ->add('save', SubmitType::class, [
29 'label' => 'config.form.save', 29 'label' => 'config.form.save',
30 )) 30 ])
31 ->remove('username') 31 ->remove('username')
32 ->remove('plainPassword') 32 ->remove('plainPassword')
33 ; 33 ;
@@ -40,9 +40,9 @@ class UserInformationType extends AbstractType
40 40
41 public function configureOptions(OptionsResolver $resolver) 41 public function configureOptions(OptionsResolver $resolver)
42 { 42 {
43 $resolver->setDefaults(array( 43 $resolver->setDefaults([
44 'data_class' => 'Wallabag\UserBundle\Entity\User', 44 'data_class' => 'Wallabag\UserBundle\Entity\User',
45 )); 45 ]);
46 } 46 }
47 47
48 public function getBlockPrefix() 48 public function getBlockPrefix()