@@ -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 @@ 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. |
@@ -34,12 +34,12 @@ discard block |
||
| 34 | 34 | { |
| 35 | 35 | $resolver->setDefaults([ |
| 36 | 36 | 'translation_path' => 'translations', |
| 37 | - 'query_builder' => function (EntityRepository $er) { |
|
| 37 | + 'query_builder' => function(EntityRepository $er) { |
|
| 38 | 38 | return $er->createQueryBuilder('e') |
| 39 | 39 | ->select('e, t') |
| 40 | 40 | ->join('e.translations', 't'); |
| 41 | 41 | }, |
| 42 | - 'choice_label' => function (Options $options) { |
|
| 42 | + 'choice_label' => function(Options $options) { |
|
| 43 | 43 | if (null === ($request = $this->requestStack->getCurrentRequest())) { |
| 44 | 44 | throw new \RuntimeException('Error while getting request'); |
| 45 | 45 | } |
@@ -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. |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | { |
| 53 | 53 | $resolver->setDefaults([ |
| 54 | 54 | 'by_reference' => false, |
| 55 | - 'empty_data' => function (FormInterface $form) { |
|
| 55 | + 'empty_data' => function(FormInterface $form) { |
|
| 56 | 56 | return new ArrayCollection(); |
| 57 | 57 | }, |
| 58 | 58 | 'locales' => $this->localeProvider->getLocales(), |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | |
| 64 | 64 | $resolver->setRequired('form_type'); |
| 65 | 65 | |
| 66 | - $resolver->setNormalizer('form_options', function (Options $options, $value): array { |
|
| 66 | + $resolver->setNormalizer('form_options', function(Options $options, $value): array { |
|
| 67 | 67 | // Check mandatory data_class option when AutoFormType use |
| 68 | 68 | if (($options['form_type'] instanceof AutoFormType) && !isset($value['data_class'])) { |
| 69 | 69 | throw new \RuntimeException(sprintf('Missing "data_class" option under "form_options" of TranslationsFormsType. Required when "form_type" use "AutoFormType".')); |
@@ -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. |
@@ -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. |