@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is part of the TranslationFormBundle package. |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is part of the TranslationFormBundle package. |
@@ -32,8 +32,7 @@ discard block |
||
32 | 32 | $container->setParameter('a2lix_translation_form.locale_provider', $config['locale_provider']); |
33 | 33 | $container->setParameter('a2lix_translation_form.locales', $config['locales']); |
34 | 34 | $container->setParameter('a2lix_translation_form.required_locales', $config['required_locales']); |
35 | - $container->setParameter('a2lix_translation_form.default_locale', $config['default_locale'] ?: |
|
36 | - $container->getParameter('kernel.default_locale')); |
|
35 | + $container->setParameter('a2lix_translation_form.default_locale', $config['default_locale'] ?: $container->getParameter('kernel.default_locale')); |
|
37 | 36 | |
38 | 37 | $container->setParameter('a2lix_translation_form.templating', $config['templating']); |
39 | 38 | } |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is part of the TranslationFormBundle package. |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | ->arrayNode('locales') |
31 | 31 | ->beforeNormalization() |
32 | 32 | ->ifString() |
33 | - ->then(function ($v) { |
|
33 | + ->then(function($v) { |
|
34 | 34 | return preg_split('/\s*,\s*/', $v); |
35 | 35 | }) |
36 | 36 | ->end() |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | ->arrayNode('required_locales') |
41 | 41 | ->beforeNormalization() |
42 | 42 | ->ifString() |
43 | - ->then(function ($v) { |
|
43 | + ->then(function($v) { |
|
44 | 44 | return preg_split('/\s*,\s*/', $v); |
45 | 45 | }) |
46 | 46 | ->end() |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is part of the TranslationFormBundle package. |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | { |
51 | 51 | $resolver->setDefaults([ |
52 | 52 | 'by_reference' => false, |
53 | - 'empty_data' => function (FormInterface $form) { |
|
53 | + 'empty_data' => function(FormInterface $form) { |
|
54 | 54 | return new ArrayCollection(); |
55 | 55 | }, |
56 | 56 | 'locales' => $this->localeProvider->getLocales(), |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is part of the TranslationFormBundle package. |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | |
44 | 44 | $translationsForm = $form->get('translations')->all(); |
45 | 45 | $translationsLocales = array_keys($translationsForm); |
46 | - $translationsRequiredLocales = array_keys(array_filter($translationsForm, function ($form) { |
|
46 | + $translationsRequiredLocales = array_keys(array_filter($translationsForm, function($form) { |
|
47 | 47 | return $form->isRequired(); |
48 | 48 | })); |
49 | 49 |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is part of the TranslationFormBundle package. |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | |
45 | 45 | $mediasForm = $form->get('medias')->all(); |
46 | 46 | $mediasLocales = array_keys($mediasForm); |
47 | - $mediasRequiredLocales = array_keys(array_filter($mediasForm, function ($form) { |
|
47 | + $mediasRequiredLocales = array_keys(array_filter($mediasForm, function($form) { |
|
48 | 48 | return $form->isRequired(); |
49 | 49 | })); |
50 | 50 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is part of the TranslationFormBundle package. |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is part of the TranslationFormBundle package. |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is part of the TranslationFormBundle package. |