aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Form/Type/UserInformationType.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2016-04-13 09:43:14 +0200
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2016-04-13 09:43:14 +0200
commitf2e5fdc3666a2a6525b4202ab48df05efeebaf5c (patch)
treef559474e248a33c472fe0b260641866be5c0def3 /src/Wallabag/CoreBundle/Form/Type/UserInformationType.php
parenta417b869237763ee115982d6367a82aa6174d74e (diff)
parent86732aa01cf0ad0fb5279f38ce75a9bedbbb66e1 (diff)
downloadwallabag-f2e5fdc3666a2a6525b4202ab48df05efeebaf5c.tar.gz
wallabag-f2e5fdc3666a2a6525b4202ab48df05efeebaf5c.tar.zst
wallabag-f2e5fdc3666a2a6525b4202ab48df05efeebaf5c.zip
Merge pull request #1916 from wallabag/cleanup
Convert array + phpDoc
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()