diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-04-13 09:43:14 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-04-13 09:43:14 +0200 |
commit | f2e5fdc3666a2a6525b4202ab48df05efeebaf5c (patch) | |
tree | f559474e248a33c472fe0b260641866be5c0def3 /src/Wallabag/CoreBundle/Form/Type/EditEntryType.php | |
parent | a417b869237763ee115982d6367a82aa6174d74e (diff) | |
parent | 86732aa01cf0ad0fb5279f38ce75a9bedbbb66e1 (diff) | |
download | wallabag-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/EditEntryType.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Form/Type/EditEntryType.php | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/Wallabag/CoreBundle/Form/Type/EditEntryType.php b/src/Wallabag/CoreBundle/Form/Type/EditEntryType.php index 23d7b239..40e5b5b9 100644 --- a/src/Wallabag/CoreBundle/Form/Type/EditEntryType.php +++ b/src/Wallabag/CoreBundle/Form/Type/EditEntryType.php | |||
@@ -14,30 +14,30 @@ class EditEntryType extends AbstractType | |||
14 | public function buildForm(FormBuilderInterface $builder, array $options) | 14 | public function buildForm(FormBuilderInterface $builder, array $options) |
15 | { | 15 | { |
16 | $builder | 16 | $builder |
17 | ->add('title', TextType::class, array( | 17 | ->add('title', TextType::class, [ |
18 | 'required' => true, | 18 | 'required' => true, |
19 | 'label' => 'entry.edit.title_label', | 19 | 'label' => 'entry.edit.title_label', |
20 | )) | 20 | ]) |
21 | ->add('is_public', CheckboxType::class, array( | 21 | ->add('is_public', CheckboxType::class, [ |
22 | 'required' => false, | 22 | 'required' => false, |
23 | 'label' => 'entry.edit.is_public_label', | 23 | 'label' => 'entry.edit.is_public_label', |
24 | )) | 24 | ]) |
25 | ->add('url', TextType::class, array( | 25 | ->add('url', TextType::class, [ |
26 | 'disabled' => true, | 26 | 'disabled' => true, |
27 | 'required' => false, | 27 | 'required' => false, |
28 | 'label' => 'entry.edit.url_label', | 28 | 'label' => 'entry.edit.url_label', |
29 | )) | 29 | ]) |
30 | ->add('save', SubmitType::class, array( | 30 | ->add('save', SubmitType::class, [ |
31 | 'label' => 'entry.edit.save_label', | 31 | 'label' => 'entry.edit.save_label', |
32 | )) | 32 | ]) |
33 | ; | 33 | ; |
34 | } | 34 | } |
35 | 35 | ||
36 | public function configureOptions(OptionsResolver $resolver) | 36 | public function configureOptions(OptionsResolver $resolver) |
37 | { | 37 | { |
38 | $resolver->setDefaults(array( | 38 | $resolver->setDefaults([ |
39 | 'data_class' => 'Wallabag\CoreBundle\Entity\Entry', | 39 | 'data_class' => 'Wallabag\CoreBundle\Entity\Entry', |
40 | )); | 40 | ]); |
41 | } | 41 | } |
42 | 42 | ||
43 | public function getBlockPrefix() | 43 | public function getBlockPrefix() |