aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Form/Type/ConfigType.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/CoreBundle/Form/Type/ConfigType.php')
-rw-r--r--src/Wallabag/CoreBundle/Form/Type/ConfigType.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Wallabag/CoreBundle/Form/Type/ConfigType.php b/src/Wallabag/CoreBundle/Form/Type/ConfigType.php
index 4cf22200..7d25cc80 100644
--- a/src/Wallabag/CoreBundle/Form/Type/ConfigType.php
+++ b/src/Wallabag/CoreBundle/Form/Type/ConfigType.php
@@ -21,7 +21,9 @@ class ConfigType extends AbstractType
21 { 21 {
22 $this->themes = array_combine( 22 $this->themes = array_combine(
23 $themes, 23 $themes,
24 array_map(function ($s) { return ucwords(strtolower(str_replace('-', ' ', $s))); }, $themes) 24 array_map(function ($s) {
25 return ucwords(strtolower(str_replace('-', ' ', $s)));
26 }, $themes)
25 ); 27 );
26 28
27 $this->languages = $languages; 29 $this->languages = $languages;
@@ -32,7 +34,6 @@ class ConfigType extends AbstractType
32 $builder 34 $builder
33 ->add('theme', ChoiceType::class, [ 35 ->add('theme', ChoiceType::class, [
34 'choices' => array_flip($this->themes), 36 'choices' => array_flip($this->themes),
35 'choices_as_values' => true,
36 'label' => 'config.form_settings.theme_label', 37 'label' => 'config.form_settings.theme_label',
37 ]) 38 ])
38 ->add('items_per_page', null, [ 39 ->add('items_per_page', null, [
@@ -49,7 +50,6 @@ class ConfigType extends AbstractType
49 ]) 50 ])
50 ->add('language', ChoiceType::class, [ 51 ->add('language', ChoiceType::class, [
51 'choices' => array_flip($this->languages), 52 'choices' => array_flip($this->languages),
52 'choices_as_values' => true,
53 'label' => 'config.form_settings.language_label', 53 'label' => 'config.form_settings.language_label',
54 ]) 54 ])
55 ->add('save', SubmitType::class, [ 55 ->add('save', SubmitType::class, [