aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Form/Type/ClientType.php
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2016-04-12 11:36:01 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-04-12 12:25:29 +0200
commit4094ea47712efbe58624ff74daeb1f77c9b0edcf (patch)
tree3d2c168092d0208e6ba888de969252a54bf0c6c1 /src/Wallabag/CoreBundle/Form/Type/ClientType.php
parent7eccbda99f16dc39ee01a0c81ab88293e9b268fd (diff)
downloadwallabag-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/ClientType.php')
-rw-r--r--src/Wallabag/CoreBundle/Form/Type/ClientType.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Wallabag/CoreBundle/Form/Type/ClientType.php b/src/Wallabag/CoreBundle/Form/Type/ClientType.php
index 9f620414..8b351e60 100644
--- a/src/Wallabag/CoreBundle/Form/Type/ClientType.php
+++ b/src/Wallabag/CoreBundle/Form/Type/ClientType.php
@@ -14,8 +14,8 @@ class ClientType 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('redirect_uris', UrlType::class, array('required' => true, 'label' => 'developer.client.form.redirect_uris_label')) 17 ->add('redirect_uris', UrlType::class, ['required' => true, 'label' => 'developer.client.form.redirect_uris_label'])
18 ->add('save', SubmitType::class, array('label' => 'developer.client.form.save_label')) 18 ->add('save', SubmitType::class, ['label' => 'developer.client.form.save_label'])
19 ; 19 ;
20 20
21 $builder->get('redirect_uris') 21 $builder->get('redirect_uris')
@@ -24,7 +24,7 @@ class ClientType extends AbstractType
24 return $originalUri; 24 return $originalUri;
25 }, 25 },
26 function ($submittedUri) { 26 function ($submittedUri) {
27 return array($submittedUri); 27 return [$submittedUri];
28 } 28 }
29 )) 29 ))
30 ; 30 ;
@@ -32,9 +32,9 @@ class ClientType extends AbstractType
32 32
33 public function configureOptions(OptionsResolver $resolver) 33 public function configureOptions(OptionsResolver $resolver)
34 { 34 {
35 $resolver->setDefaults(array( 35 $resolver->setDefaults([
36 'data_class' => 'Wallabag\ApiBundle\Entity\Client', 36 'data_class' => 'Wallabag\ApiBundle\Entity\Client',
37 )); 37 ]);
38 } 38 }
39 39
40 public function getBlockPrefix() 40 public function getBlockPrefix()