diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-04-12 11:36:01 +0200 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-04-12 12:25:29 +0200 |
commit | 4094ea47712efbe58624ff74daeb1f77c9b0edcf (patch) | |
tree | 3d2c168092d0208e6ba888de969252a54bf0c6c1 /src/Wallabag/CoreBundle/Form/Type/UserInformationType.php | |
parent | 7eccbda99f16dc39ee01a0c81ab88293e9b268fd (diff) | |
download | wallabag-4094ea47712efbe58624ff74daeb1f77c9b0edcf.tar.gz wallabag-4094ea47712efbe58624ff74daeb1f77c9b0edcf.tar.zst wallabag-4094ea47712efbe58624ff74daeb1f77c9b0edcf.zip |
Convert array + phpDoc
Thanks for https://github.com/thomasbachem/php-short-array-syntax-converter
Diffstat (limited to 'src/Wallabag/CoreBundle/Form/Type/UserInformationType.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Form/Type/UserInformationType.php | 20 |
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() |