Completed
Push — master ( df7e66...c866de )
by Vladimir
02:15
created
src/DependencyInjection/KoffI18nFormExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
         $processor = new Processor();
30 30
         $config = $processor->processConfiguration(new Configuration(), $configs);
31 31
 
32
-        $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
32
+        $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
33 33
         $loader->load('a2lix_form.xml');
34 34
 
35 35
         $container->setParameter('koff_i18n_form.locale_provider', $config['locale_provider']);
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
@@ -39,17 +39,17 @@
 block discarded – undo
39 39
         $resolver->setDefaults([
40 40
             'translation_path' => 'translations',
41 41
             'translation_property' => null,
42
-            'query_builder' => function (EntityRepository $er) {
42
+            'query_builder' => function(EntityRepository $er) {
43 43
                 return $er->createQueryBuilder('e')
44 44
                     ->select('e, t')
45 45
                     ->join('e.translations', 't');
46 46
             },
47
-            'property' => function (Options $options) {
47
+            'property' => function(Options $options) {
48 48
                 if (null === ($request = $this->requestStack->getCurrentRequest())) {
49 49
                     throw new \RuntimeException('Error while getting request');
50 50
                 }
51 51
 
52
-                return $options['translation_path'].'['.$request->getLocale().'].'.$options['translation_property'];
52
+                return $options['translation_path'] . '[' . $request->getLocale() . '].' . $options['translation_property'];
53 53
             },
54 54
         ]);
55 55
     }
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
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
             return $translatableClass::getTranslationClass();
87 87
         }
88 88
 
89
-        return $translatableClass.'Translation';
89
+        return $translatableClass . 'Translation';
90 90
     }
91 91
 
92 92
     /**
Please login to merge, or discard this patch.