Completed
Pull Request — master (#309)
by David
05:04
created
src/Form/EventListener/TranslationsListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
src/Form/EventListener/TranslationsFormsListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
src/Form/Type/TranslatedEntityType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
                 }
Please login to merge, or discard this patch.
src/Form/Type/TranslationsFormsType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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".'));
Please login to merge, or discard this patch.
src/Locale/SimpleProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
src/DependencyInjection/Compiler/LocaleProviderPass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
tests/Form/TypeTestCase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
tests/Locale/SimpleProviderTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.