Passed
Push — master ( 3a4561...96db1c )
by David
02: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/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/Type/TranslationsType.php 1 patch
Spacing   +2 added lines, -2 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.
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
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(),
Please login to merge, or discard this patch.
tests/Form/Type/TranslationsTypeAdvancedTest.php 1 patch
Spacing   +2 added lines, -2 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.
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
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
 
Please login to merge, or discard this patch.
tests/Form/Type/TranslationsFormsTypeAdvancedTest.php 1 patch
Spacing   +2 added lines, -2 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.
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
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
 
Please login to merge, or discard this patch.
tests/Form/Type/TranslationsTypeSimpleTest.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -59,16 +59,16 @@
 block discarded – undo
59 59
 
60 60
         $productTranslationEn = new ProductTranslation();
61 61
         $productTranslationEn->setLocale('en')
62
-                             ->setTitle('title en')
63
-                             ->setDescription('desc en');
62
+                                ->setTitle('title en')
63
+                                ->setDescription('desc en');
64 64
         $productTranslationFr = new ProductTranslation();
65 65
         $productTranslationFr->setLocale('fr')
66
-                             ->setTitle('title fr')
67
-                             ->setDescription('desc fr');
66
+                                ->setTitle('title fr')
67
+                                ->setDescription('desc fr');
68 68
         $productTranslationDe = new ProductTranslation();
69 69
         $productTranslationDe->setLocale('de')
70
-                             ->setTitle('title de')
71
-                             ->setDescription('desc de');
70
+                                ->setTitle('title de')
71
+                                ->setDescription('desc de');
72 72
 
73 73
         $product = new Product();
74 74
         $product->setUrl('a2lix.fr')
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 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.
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
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
 
Please login to merge, or discard this patch.
tests/Form/TypeTestCase.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -42,8 +42,8 @@  discard block
 block discarded – undo
42 42
         parent::setUp();
43 43
 
44 44
         $validator = $this->getMockBuilder(ValidatorInterface::class)
45
-                     ->disableOriginalConstructor()
46
-                     ->getMock();
45
+                        ->disableOriginalConstructor()
46
+                        ->getMock();
47 47
         $validator->method('validate')->will($this->returnValue(new ConstraintViolationList()));
48 48
 
49 49
         $this->factory = Forms::createFormFactoryBuilder()
@@ -53,8 +53,8 @@  discard block
 block discarded – undo
53 53
             )
54 54
             ->addTypeGuesser(
55 55
                 $this->getMockBuilder(ValidatorTypeGuesser::class)
56
-                     ->disableOriginalConstructor()
57
-                     ->getMock()
56
+                        ->disableOriginalConstructor()
57
+                        ->getMock()
58 58
             )
59 59
             ->getFormFactory();
60 60
 
Please login to merge, or discard this 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/A2lixTranslationFormBundle.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.