Passed
Branch master (3a4561)
by David
10:57
created
src/DependencyInjection/Compiler/TemplatingPass.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.
src/DependencyInjection/A2lixTranslationFormExtension.php 1 patch
Spacing   +2 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.
@@ -32,8 +32,7 @@  discard block
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/DependencyInjection/Configuration.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.
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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()
Please login to merge, or discard this patch.
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/TranslationsLocalesSelectorType.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.
@@ -35,12 +35,12 @@  discard block
 block discarded – undo
35 35
         $resolver->setDefaults([
36 36
             'translation_path' => 'translations',
37 37
             'translation_property' => null,
38
-            'query_builder' => function (EntityRepository $er) {
38
+            'query_builder' => function(EntityRepository $er) {
39 39
                 return $er->createQueryBuilder('e')
40 40
                     ->select('e, t')
41 41
                     ->join('e.translations', 't');
42 42
             },
43
-            'choice_label' => function (Options $options) {
43
+            'choice_label' => function(Options $options) {
44 44
                 if (null === ($request = $this->requestStack->getCurrentRequest())) {
45 45
                     throw new \RuntimeException('Error while getting request');
46 46
                 }
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(),
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
             'form_options' => [],
63 63
         ]);
64 64
 
65
-        $resolver->setNormalizer('form_options', function (Options $options, $value) {
65
+        $resolver->setNormalizer('form_options', function(Options $options, $value) {
66 66
             // Check mandatory data_class option when AutoFormType use
67 67
             if (($options['form_type'] instanceof AutoFormType) && !isset($value['data_class'])) {
68 68
                 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.